From de80b57d9aa436f562a062139ba03df0a142d122 Mon Sep 17 00:00:00 2001 From: TheAwiteb Date: Tue, 12 Sep 2023 18:31:12 +0300 Subject: [PATCH] Fix typo --- crates/teloxide-macros/src/command.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/teloxide-macros/src/command.rs b/crates/teloxide-macros/src/command.rs index f9e6e77c..a36f91eb 100644 --- a/crates/teloxide-macros/src/command.rs +++ b/crates/teloxide-macros/src/command.rs @@ -77,7 +77,7 @@ impl Command { pub(crate) fn deprecated_description_off_span(&self) -> Option { self.description .as_ref() - .filter(|(d, ..)| d == "off" && !self.description_is_enabled()) + .filter(|(d, ..)| d == "off" && !self.contains_doc_comment()) .map(|&(.., span)| span) } }