Skip to content

Commit f86f103

Browse files
authored
Merge pull request #4260 from drvoss/patch-68
Update cpp-type-system-modern-cpp.md
2 parents 409b51c + ae725db commit f86f103

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/cpp/cpp-type-system-modern-cpp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ Any built-in or user-defined type may be qualified by the const keyword. Additio
8080
```cpp
8181

8282
const double PI = 3.1415;
83-
PI = .75 //Error. Cannot modify const variable.
83+
PI = .75; //Error. Cannot modify const variable.
8484
```
8585

8686
The **`const`** qualifier is used extensively in function and variable declarations and "const correctness" is an important concept in C++; essentially it means to use **`const`** to guarantee, at compile time, that values are not modified unintentionally. For more information, see [`const`](../cpp/const-cpp.md).

0 commit comments

Comments
 (0)