mirror of
https://github.com/rust-lang/rust
synced 2024-09-15 22:50:55 +00:00
Auto merge of #25923 - tshepang:patch-1, r=Gankro
This commit is contained in:
commit
971731849d
|
@ -320,7 +320,7 @@ pub fn as_mut_slice<'r>(&'r mut self) -> &'r mut [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 a new issue