Skip to content

Commit

Permalink
Removed unreachable!() statement in doc test
Browse files Browse the repository at this point in the history
Shows that the test actually panics by hitting `panic!()` rather than
panicking due to hitting `unreachable!()`.
  • Loading branch information
Nydauron committed Jun 28, 2024
1 parent 0fc3fb6 commit 3dfc17e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/core/carddeck.rs
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,6 @@ impl CardDeck {
/// panic!("Ran out of cards!");
/// }
/// }
///
/// unreachable!();
/// ```
pub fn deal_cards(&mut self, cards_to_deal: usize, include_muck: bool) -> Option<Vec<Card>> {
if !self.check_deal_cards(cards_to_deal, include_muck) {
Expand Down

0 comments on commit 3dfc17e

Please sign in to comment.