We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cef6894 + 2ce14b8 commit f2cc0ccCopy full SHA for f2cc0cc
src/libcore/option.rs
@@ -331,12 +331,12 @@ impl<T> Option<T> {
331
///
332
/// ```
333
/// let x = Some("value");
334
- /// assert_eq!(x.expect("the world is ending"), "value");
+ /// assert_eq!(x.expect("fruits are healthy"), "value");
335
336
337
/// ```{.should_panic}
338
/// let x: Option<&str> = None;
339
- /// x.expect("the world is ending"); // panics with `the world is ending`
+ /// x.expect("fruits are healthy"); // panics with `fruits are healthy`
340
341
#[inline]
342
#[track_caller]
0 commit comments