mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
doc: fix displayed message
This commit is contained in:
parent
78c4d53871
commit
89ee223c9c
@ -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…
Reference in New Issue
Block a user