about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorTshepang Lekhonkhobe <tshepang@gmail.com>2015-05-31 10:49:22 +0200
committerTshepang Lekhonkhobe <tshepang@gmail.com>2015-05-31 10:49:22 +0200
commit89ee223c9ce99c8067ce3b3faca16dc070ec831b (patch)
treeb2d52f2c101df36fa5e1003e451841266e724aef /src/libcore
parent78c4d53871b3d75b4de5f96cb1f9cdc11648ccc6 (diff)
downloadrust-89ee223c9ce99c8067ce3b3faca16dc070ec831b.tar.gz
rust-89ee223c9ce99c8067ce3b3faca16dc070ec831b.zip
doc: fix displayed message
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/option.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/option.rs b/src/libcore/option.rs
index 8da28094be3..866d509fcbd 100644
--- a/src/libcore/option.rs
+++ b/src/libcore/option.rs
@@ -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")]