doc: fix displayed message

This commit is contained in:
Tshepang Lekhonkhobe 2015-05-31 10:49:22 +02:00
parent 78c4d53871
commit 89ee223c9c

View File

@ -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")]