From 6ebf51efeb068b0291922be16bc6bc7d0fadc9c4 Mon Sep 17 00:00:00 2001 From: Lev Khoroshansky Date: Sun, 9 Oct 2022 19:41:52 +0300 Subject: [PATCH] fix: Sync docs & comments with code --- examples/admin.rs | 4 ++-- src/utils/command.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/admin.rs b/examples/admin.rs index 4be9a543..fbbc1615 100644 --- a/examples/admin.rs +++ b/examples/admin.rs @@ -5,8 +5,8 @@ use teloxide::{prelude::*, types::ChatPermissions, utils::command::BotCommands}; // Derive BotCommands to parse text with a command into this enumeration. // -// 1. rename = "lowercase" turns all the commands into lowercase letters. -// 2. `description = "..."` specifies a text before all the commands. +// 1. `rename_rule = "lowercase"` turns all the commands into lowercase +// letters. 2. `description = "..."` specifies a text before all the commands. // // That is, you can just call Command::descriptions() to get a description of // your commands in this format: diff --git a/src/utils/command.rs b/src/utils/command.rs index 24e001cf..2d16f23b 100644 --- a/src/utils/command.rs +++ b/src/utils/command.rs @@ -233,7 +233,7 @@ pub trait BotCommands: Sized { /// Returns `PhantomData` that is used as a param of [`commands_repl`] /// - /// [`commands_repl`]: (crate::repls2::commands_repl) + /// [`commands_repl`]: (crate::repls::commands_repl) #[must_use] fn ty() -> PhantomData { PhantomData