Skip to content

Commit 2276a56

Browse files
committed
fix broken doctest
1 parent 2adb6b6 commit 2276a56

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/src/option.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -715,6 +715,7 @@ impl<T> Option<T> {
715715
/// _expect_ the `Option` should be `Some`.
716716
///
717717
/// ```should_panic
718+
/// # let slice: &[u8] = &[];
718719
/// let item = slice.get(0)
719720
/// .expect("slice should not be empty");
720721
/// ```

0 commit comments

Comments
 (0)