Skip to content

Commit

Permalink
Rollup merge of rust-lang#66465 - mulimoen:fix_lifetime_elision_not_s…
Browse files Browse the repository at this point in the history
…hown, r=rkruppe

add missing 'static lifetime in docs
  • Loading branch information
Centril authored Nov 17, 2019
2 parents 5aa6e46 + e85f40c commit 6268e5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstd/keyword_docs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ mod break_keyword { }
/// look like this:
///
/// ```rust
/// const WORDS: &str = "hello rust!";
/// const WORDS: &'static str = "hello rust!";
/// ```
///
/// Thanks to static lifetime elision, you usually don't have to explicitly use 'static:
Expand Down

0 comments on commit 6268e5b

Please sign in to comment.