about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorSubhash Bhushan <subhash.bhushan@kaybus.com>2014-11-08 21:17:51 +0530
committerSubhash Bhushan <subhash.bhushan@kaybus.com>2014-11-20 23:45:42 +0530
commitbc9de771d5f2ab71a0e3b0eb27a92c65e8ddd4b9 (patch)
tree3c4b73ceb5ca5574d2025d9da1ed86a2f6af2b71 /src/libcore
parent394269d16e3752a23ffa273e68f8aaefd2a510c4 (diff)
Rename remaining Failures to Panic
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/option.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/option.rs b/src/libcore/option.rs
index 19938973037..fcf2dab6908 100644
--- a/src/libcore/option.rs
+++ b/src/libcore/option.rs
@@ -303,7 +303,7 @@ impl<T> Option<T> {
     ///
     /// # Panics
     ///
-    /// Fails if the value is a `None` with a custom panic message provided by
+    /// Panics if the value is a `None` with a custom panic message provided by
     /// `msg`.
     ///
     /// # Example
@@ -315,7 +315,7 @@ impl<T> Option<T> {
     ///
     /// ```{.should_fail}
     /// let x: Option<&str> = None;
-    /// x.expect("the world is ending"); // fails with `world is ending`
+    /// x.expect("the world is ending"); // panics with `world is ending`
     /// ```
     #[inline]
     #[unstable = "waiting for conventions"]