Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/cpp/cpp-type-system-modern-cpp.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ Any built-in or user-defined type may be qualified by the const keyword. Additio
```cpp

const double PI = 3.1415;
PI = .75 //Error. Cannot modify const variable.
PI = .75; //Error. Cannot modify const variable.
```

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).
Expand Down