Rollup merge of #66465 - mulimoen:fix_lifetime_elision_not_shown, r=rkruppe
add missing 'static lifetime in docs
This commit is contained in:
commit
404081fd48
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue