Rollup merge of #66465 - mulimoen:fix_lifetime_elision_not_shown, r=rkruppe

add missing 'static lifetime in docs
This commit is contained in:
Yuki Okushi 2019-11-17 13:36:19 +09:00 committed by GitHub
commit 404081fd48
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: