fix: Sync docs & comments with code

Former-commit-id: 6ebf51efeb
This commit is contained in:
Lev Khoroshansky 2022-10-09 19:41:52 +03:00
parent b6beb8e1f7
commit fdaddb3902
2 changed files with 3 additions and 3 deletions

View file

@ -5,8 +5,8 @@ use teloxide::{prelude::*, types::ChatPermissions, utils::command::BotCommands};
// Derive BotCommands to parse text with a command into this enumeration. // Derive BotCommands to parse text with a command into this enumeration.
// //
// 1. rename = "lowercase" turns all the commands into lowercase letters. // 1. `rename_rule = "lowercase"` turns all the commands into lowercase
// 2. `description = "..."` specifies a text before all the commands. // letters. 2. `description = "..."` specifies a text before all the commands.
// //
// That is, you can just call Command::descriptions() to get a description of // That is, you can just call Command::descriptions() to get a description of
// your commands in this format: // your commands in this format:

View file

@ -233,7 +233,7 @@ pub trait BotCommands: Sized {
/// Returns `PhantomData<Self>` that is used as a param of [`commands_repl`] /// Returns `PhantomData<Self>` that is used as a param of [`commands_repl`]
/// ///
/// [`commands_repl`]: (crate::repls2::commands_repl) /// [`commands_repl`]: (crate::repls::commands_repl)
#[must_use] #[must_use]
fn ty() -> PhantomData<Self> { fn ty() -> PhantomData<Self> {
PhantomData PhantomData