Skip to content

Commit

Permalink
Auto merge of #25432 - killercup:patch-12, r=steveklabnik
Browse files Browse the repository at this point in the history
`[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
  • Loading branch information
bors committed May 15, 2015
2 parents a9ea33f + 94be115 commit daaf715
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/doc/trpl/const-and-static.md
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit daaf715

Please sign in to comment.