Skip to content

Commit

Permalink
fix broken doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
yaahc committed May 25, 2022
1 parent 720e987 commit ef879c6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/core/src/option.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
/// ```
Expand Down

0 comments on commit ef879c6

Please sign in to comment.