Skip to content

Commit 6268e5b

Browse files
authored
Rollup merge of rust-lang#66465 - mulimoen:fix_lifetime_elision_not_shown, r=rkruppe
add missing 'static lifetime in docs
2 parents 5aa6e46 + e85f40c commit 6268e5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/keyword_docs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ mod break_keyword { }
126126
/// look like this:
127127
///
128128
/// ```rust
129-
/// const WORDS: &str = "hello rust!";
129+
/// const WORDS: &'static str = "hello rust!";
130130
/// ```
131131
///
132132
/// Thanks to static lifetime elision, you usually don't have to explicitly use 'static:

0 commit comments

Comments
 (0)