Auto merge of #25432 - killercup:patch-12, r=steveklabnik
`[let]` was already defined in line 11. Pandoc shows a warning for this. I'm not sure if it's actually invalid Markdown. r? @steveklabnik
This commit is contained in:
commit
daaf715539
|
@ -31,10 +31,8 @@ static N: i32 = 5;
|
||||||
|
|
||||||
Unlike [`let`][let] bindings, you must annotate the type of a `static`.
|
Unlike [`let`][let] bindings, you must annotate the type of a `static`.
|
||||||
|
|
||||||
[let]: variable-bindings.html
|
|
||||||
|
|
||||||
Statics live for the entire lifetime of a program, and therefore any
|
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 constant has a [`'static` lifetime][lifetimes]:
|
||||||
|
|
||||||
```rust
|
```rust
|
||||||
static NAME: &'static str = "Steve";
|
static NAME: &'static str = "Steve";
|
||||||
|
|
Loading…
Reference in New Issue