mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-13 12:36:47 +00:00
fix broken doctest
This commit is contained in:
parent
720e987ac0
commit
ef879c680e
@ -715,6 +715,7 @@ impl<T> Option<T> {
|
||||
/// _expect_ the `Option` should be `Some`.
|
||||
///
|
||||
/// ```should_panic
|
||||
/// # let slice: &[u8] = &[];
|
||||
/// let item = slice.get(0)
|
||||
/// .expect("slice should not be empty");
|
||||
/// ```
|
||||
|
Loading…
Reference in New Issue
Block a user