From fde91dacf4543fe80b99d9e601e6ffa8e0d64614 Mon Sep 17 00:00:00 2001 From: Maybe Waffle Date: Fri, 7 Oct 2022 13:09:57 +0400 Subject: [PATCH] Apply suggestions from the review Former-commit-id: db22e202211071c8c7ff3184f8fcb9b9d61079e6 --- src/dispatching/repls/commands_repl.rs | 8 ++++++++ src/dispatching/repls/repl.rs | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/src/dispatching/repls/commands_repl.rs b/src/dispatching/repls/commands_repl.rs index 9b136006..b4f98866 100644 --- a/src/dispatching/repls/commands_repl.rs +++ b/src/dispatching/repls/commands_repl.rs @@ -41,6 +41,10 @@ use std::{fmt::Debug, marker::PhantomData}; /// - `Cmd` (type of the parsed command) /// - [`Me`] /// +/// Each of these types can be accepted as a handler parameter. Note that they +/// aren't all required at the same time: e.g., you can take only the bot and +/// the command without [`Me`] and [`Message`]. +/// /// [`Me`]: crate::types::Me /// [`Message`]: crate::types::Message /// @@ -103,6 +107,10 @@ where /// - `Cmd` (type of the parsed command) /// - [`Me`] /// +/// Each of these types can be accepted as a handler parameter. Note that they +/// aren't all required at the same time: e.g., you can take only the bot and +/// the command without [`Me`] and [`Message`]. +/// /// [`Me`]: crate::types::Me /// [`Message`]: crate::types::Message /// diff --git a/src/dispatching/repls/repl.rs b/src/dispatching/repls/repl.rs index 1c6fd659..e0d52eae 100644 --- a/src/dispatching/repls/repl.rs +++ b/src/dispatching/repls/repl.rs @@ -30,6 +30,10 @@ use std::fmt::Debug; /// - `R` (type of the `bot`) /// - [`Me`] /// +/// Each of these types can be accepted as a handler parameter. Note that they +/// aren't all required at the same time: e.g., you can take only the bot and +/// the command without [`Me`] and [`Message`]. +/// /// [`Me`]: crate::types::Me /// [`Message`]: crate::types::Message /// @@ -78,6 +82,10 @@ where /// - `R` (type of the `bot`) /// - [`Me`] /// +/// Each of these types can be accepted as a handler parameter. Note that they +/// aren't all required at the same time: e.g., you can take only the bot and +/// the command without [`Me`] and [`Message`]. +/// /// [`Me`]: crate::types::Me /// [`Message`]: crate::types::Message ///