fix wrong word used (static vs const)

This commit is contained in:
Maik Riechert 2017-03-01 23:06:40 +00:00 committed by GitHub
parent 691eba1358
commit 898d010692
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ static N: i32 = 5;
Unlike [`let`][let] bindings, you must annotate the type of a `static`.
Statics live for the entire lifetime of a program, and therefore any
reference stored in a constant has a [`'static` lifetime][lifetimes]:
reference stored in a static has a [`'static` lifetime][lifetimes]:
```rust
static NAME: &'static str = "Steve";