From 0119dbc515f0e3be125a70a9c0be8a08c5684233 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 18 Oct 2022 14:44:25 +0000 Subject: [PATCH] Document `::telegram::inline::deck_to_inlinequeryresult` --- src/telegram/inline.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/telegram/inline.rs b/src/telegram/inline.rs index a3a3fa8..3b55fef 100644 --- a/src/telegram/inline.rs +++ b/src/telegram/inline.rs @@ -12,7 +12,7 @@ use teloxide::types::{ InputMessageContentText, ParseMode, }; -/// Converts a [Card] into a [InlineQueryResult]. +/// Convert a [Card] into a [InlineQueryResult]. pub fn card_to_inlinequeryresult( globals: &LocalizedGlobalsIndexes, card: &Card, @@ -43,6 +43,7 @@ pub fn card_to_inlinequeryresult( }) } +/// Convert a [Deck] into a [InlineQueryResult]. pub fn deck_to_inlinequeryresult(index: &CardIndex, deck: &Deck) -> InlineQueryResult { let code = deck .to_code(DeckCodeFormat::F1)