From ef879c680e4a4d7a1060b27e1686bf031067a587 Mon Sep 17 00:00:00 2001 From: Jane Lusby Date: Wed, 25 May 2022 12:20:48 -0700 Subject: [PATCH] fix broken doctest --- library/core/src/option.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/library/core/src/option.rs b/library/core/src/option.rs index 77619d61d9f..cfa77f39f57 100644 --- a/library/core/src/option.rs +++ b/library/core/src/option.rs @@ -715,6 +715,7 @@ impl Option { /// _expect_ the `Option` should be `Some`. /// /// ```should_panic + /// # let slice: &[u8] = &[]; /// let item = slice.get(0) /// .expect("slice should not be empty"); /// ```