Skip to content

Commit 898d010

Browse files
authored
fix wrong word used (static vs const)
1 parent 691eba1 commit 898d010

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/book/src/const-and-static.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ static N: i32 = 5;
3232
Unlike [`let`][let] bindings, you must annotate the type of a `static`.
3333

3434
Statics live for the entire lifetime of a program, and therefore any
35-
reference stored in a constant has a [`'static` lifetime][lifetimes]:
35+
reference stored in a static has a [`'static` lifetime][lifetimes]:
3636

3737
```rust
3838
static NAME: &'static str = "Steve";

0 commit comments

Comments
 (0)