Skip to content

Commit daaf715

Browse files
committed
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
2 parents a9ea33f + 94be115 commit daaf715

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/doc/trpl/const-and-static.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,8 @@ static N: i32 = 5;
3131

3232
Unlike [`let`][let] bindings, you must annotate the type of a `static`.
3333

34-
[let]: variable-bindings.html
35-
3634
Statics live for the entire lifetime of a program, and therefore any
37-
reference stored in a constant has a [`static` lifetime][lifetimes]:
35+
reference stored in a constant has a [`'static` lifetime][lifetimes]:
3836

3937
```rust
4038
static NAME: &'static str = "Steve";

0 commit comments

Comments
 (0)