about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorMagnus Ulimoen <flymagnus@gmail.com>2019-11-16 08:22:40 +0100
committerMagnus Ulimoen <flymagnus@gmail.com>2019-11-16 08:40:35 +0100
commite85f40cbd202b8b87c5f2846f369bfa36d371bcb (patch)
tree39ea0e9f57b7e1267f42eeed2ddb45b5ea737ad0 /src/libstd
parent1d8b6ce89e0874b5e93c9e41bfdd565c56372bb0 (diff)
downloadrust-e85f40cbd202b8b87c5f2846f369bfa36d371bcb.tar.gz
rust-e85f40cbd202b8b87c5f2846f369bfa36d371bcb.zip
add missing 'static lifetime in docs
The example refers to a static lifetime parameter that can be elided.
This parameter is not included, meaning lifetime elision is not shown.
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: