Skip to content

Commit bcfbad2

Browse files
authored
Merge pull request #154 from pbrubaker/patch-1
Fix broken link to John Carmack's comments on `const`
2 parents 2b8e218 + 883275c commit bcfbad2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

04-Considering_Safety.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33

44
## Const as Much as Possible
5-
`const` tells the compiler that a variable or method is immutable. This helps the compiler optimize the code and helps the developer know if a function has a side effect. Also, using `const &` prevents the compiler from copying data unnecessarily. The [comments on `const` from John Carmack](http://kotaku.com/454293019) are also a good read.
5+
`const` tells the compiler that a variable or method is immutable. This helps the compiler optimize the code and helps the developer know if a function has a side effect. Also, using `const &` prevents the compiler from copying data unnecessarily. The [comments on `const` from John Carmack](https://web.archive.org/web/20131211065348/https://kotaku.com/454293019) are also a good read.
66

77
```cpp
88
// Bad Idea

0 commit comments

Comments
 (0)