doc: fix displayed message
This commit is contained in:
parent
78c4d53871
commit
89ee223c9c
1 changed files with 1 additions and 1 deletions
|
|
@ -320,7 +320,7 @@ impl<T> Option<T> {
|
|||
///
|
||||
/// ```{.should_panic}
|
||||
/// let x: Option<&str> = None;
|
||||
/// x.expect("the world is ending"); // panics with `world is ending`
|
||||
/// x.expect("the world is ending"); // panics with `the world is ending`
|
||||
/// ```
|
||||
#[inline]
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue