diff options
Diffstat (limited to 'src/ext/framework/create_command.rs')
| -rw-r--r-- | src/ext/framework/create_command.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ext/framework/create_command.rs b/src/ext/framework/create_command.rs index 52a0793..357a597 100644 --- a/src/ext/framework/create_command.rs +++ b/src/ext/framework/create_command.rs @@ -94,7 +94,7 @@ impl CreateCommand { } /// A function that can be called when a command is received. - /// You can return Err(string) if there's an error. + /// You can return `Err(string)` if there's an error. /// /// See [`exec_str`] if you _only_ need to return a string on command use. /// @@ -110,7 +110,7 @@ impl CreateCommand { /// the internal HashMap of commands, used specifically for creating a help /// command. /// - /// You can return Err(string) if there's an error. + /// You can return `Err(string)` if there's an error. pub fn exec_help<F>(mut self, f: F) -> Self where F: Fn(&mut Context, &Message, HashMap<String, Arc<CommandGroup>>, Vec<String>) -> Result<(), String> + Send + Sync + 'static { self.0.exec = CommandType::WithCommands(Box::new(f)); |