提交 898d0106 编写于 作者: M Maik Riechert 提交者: GitHub

fix wrong word used (static vs const)

上级 691eba13
......@@ -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";
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册