From 4255ca0d7a84cc11af1355d5d51b9a91b12d3d95 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 30 Jan 2023 18:35:40 +0100 Subject: [PATCH] Fix broken doctest --- src/data/deckcode/deck.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/data/deckcode/deck.rs b/src/data/deckcode/deck.rs index 4a32c89..8b17946 100644 --- a/src/data/deckcode/deck.rs +++ b/src/data/deckcode/deck.rs @@ -452,7 +452,7 @@ impl Deck { /// /// let index: CardIndex = create_cardindex_from_wd(); /// let deck: Deck = deck!("CECQCAQCA4AQIAYKAIAQGLRWAQAQECAPEUXAIAQDAEBQOCIBAIAQEMJYAA"); - /// assert_eq!(d.card_count(&index), 40); + /// assert_eq!(deck.card_count(), 40); /// pub fn card_count(&self) -> u32 { self.contents.values().sum() @@ -472,7 +472,7 @@ impl Deck { /// /// let index: CardIndex = create_cardindex_from_wd(); /// let deck: Deck = deck!("CECQCAQCA4AQIAYKAIAQGLRWAQAQECAPEUXAIAQDAEBQOCIBAIAQEMJYAA"); - /// assert_eq!(d.champions_count(&index), 6); + /// assert_eq!(deck.champions_count(&index), 6); /// ``` pub fn champions_count(&self, cards: &CardIndex) -> u32 { self.champions(cards)