fix broken doctest

This commit is contained in:
Jane Lusby 2022-05-25 12:20:48 -07:00
parent 720e987ac0
commit ef879c680e

View File

@ -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");
/// ```