mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 14:35:36 +01:00
Fix doc test
This commit is contained in:
parent
eeb0ef663f
commit
3d050eaf43
1 changed files with 12 additions and 2 deletions
|
@ -348,8 +348,18 @@ impl<'a> CommandDescriptions<'a> {
|
|||
/// use teloxide::utils::command::{CommandDescription, CommandDescriptions};
|
||||
///
|
||||
/// let descriptions = CommandDescriptions::new(&[
|
||||
/// CommandDescription { prefix: "/", command: "start", description: "start this bot" },
|
||||
/// CommandDescription { prefix: "/", command: "help", description: "show this message" },
|
||||
/// CommandDescription {
|
||||
/// prefix: "/",
|
||||
/// command: "start",
|
||||
/// description: "start this bot",
|
||||
/// aliases: &[],
|
||||
/// },
|
||||
/// CommandDescription {
|
||||
/// prefix: "/",
|
||||
/// command: "help",
|
||||
/// description: "show this message",
|
||||
/// aliases: &[],
|
||||
/// },
|
||||
/// ]);
|
||||
///
|
||||
/// assert_eq!(descriptions.to_string(), "/start — start this bot\n/help — show this message");
|
||||
|
|
Loading…
Reference in a new issue