1
Fork 0
mirror of https://github.com/Steffo99/patched-porobot.git synced 2024-12-22 17:44:22 +00:00

Close doctest codeblock

This commit is contained in:
Steffo 2023-03-24 12:24:45 +01:00
parent 779910b8c4
commit cfc85068c5
Signed by: steffo
GPG key ID: 2A24051445686895

View file

@ -453,7 +453,7 @@ impl Deck {
/// let index: CardIndex = create_cardindex_from_wd(); /// let index: CardIndex = create_cardindex_from_wd();
/// let deck: Deck = deck!("CECQCAQCA4AQIAYKAIAQGLRWAQAQECAPEUXAIAQDAEBQOCIBAIAQEMJYAA"); /// let deck: Deck = deck!("CECQCAQCA4AQIAYKAIAQGLRWAQAQECAPEUXAIAQDAEBQOCIBAIAQEMJYAA");
/// assert_eq!(deck.card_count(), 40); /// assert_eq!(deck.card_count(), 40);
/// /// ```
pub fn card_count(&self) -> u32 { pub fn card_count(&self) -> u32 {
self.contents.values().sum() self.contents.values().sum()
} }