We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a8918c commit fc491b4Copy full SHA for fc491b4
src/custom_types/constants.md
@@ -4,7 +4,7 @@ Rust has two different types of constants which can be declared in any scope
4
including global. Both require explicit type annotation:
5
6
* `const`: An unchangeable value (the common case).
7
-* `static`: A possibly mutable variable with [`'static`][static] lifetime.
+* `static`: A possibly mutable variable with [`static`][static] lifetime.
8
The static lifetime is inferred and does not have to be specified.
9
Accessing or modifying a mutable static variable is [`unsafe`][unsafe].
10
0 commit comments