summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev@gmail.com>2019-11-17 13:36:19 +0900
committerGitHub <noreply@github.com>2019-11-17 13:36:19 +0900
commit404081fd480d468318ded3650ff53bdae507293e (patch)
tree9def819f0aa14e4780f05179366f6f26242c906f /src/libstd
parent6e6c46c6940a04c9987da33df1173bc413249a0b (diff)
parente85f40cbd202b8b87c5f2846f369bfa36d371bcb (diff)
downloadrust-404081fd480d468318ded3650ff53bdae507293e.tar.gz
rust-404081fd480d468318ded3650ff53bdae507293e.zip
Rollup merge of #66465 - mulimoen:fix_lifetime_elision_not_shown, r=rkruppe
add missing 'static lifetime in docs
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/keyword_docs.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/keyword_docs.rs b/src/libstd/keyword_docs.rs
index d025a7d16f2..b0baf36308e 100644
--- a/src/libstd/keyword_docs.rs
+++ b/src/libstd/keyword_docs.rs
@@ -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: