Skip to content

Commit 3dfc17e

Browse files
committed
Removed unreachable!() statement in doc test
Shows that the test actually panics by hitting `panic!()` rather than panicking due to hitting `unreachable!()`.
1 parent 0fc3fb6 commit 3dfc17e

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/core/carddeck.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,8 +308,6 @@ impl CardDeck {
308308
/// panic!("Ran out of cards!");
309309
/// }
310310
/// }
311-
///
312-
/// unreachable!();
313311
/// ```
314312
pub fn deal_cards(&mut self, cards_to_deal: usize, include_muck: bool) -> Option<Vec<Card>> {
315313
if !self.check_deal_cards(cards_to_deal, include_muck) {

0 commit comments

Comments
 (0)