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
1 changed files with 1 additions and 3 deletions
|
|
@ -31,10 +31,8 @@ static N: i32 = 5;
|
|||
|
||||
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
|
||||
reference stored in a constant has a [`’static` lifetime][lifetimes]:
|
||||
reference stored in a constant has a [`'static` lifetime][lifetimes]:
|
||||
|
||||
```rust
|
||||
static NAME: &'static str = "Steve";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue