diff options
| author | Zeyla Hellyer <[email protected]> | 2017-05-28 13:14:15 -0700 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2017-05-28 13:14:38 -0700 |
| commit | 71f3dbb650f4b0d6434630137ae9eea502a1ebef (patch) | |
| tree | dd079fe5366eace889de6087f8daa6ddeb6df9c3 /src | |
| parent | Implement multiple attachments (diff) | |
| download | serenity-71f3dbb650f4b0d6434630137ae9eea502a1ebef.tar.xz serenity-71f3dbb650f4b0d6434630137ae9eea502a1ebef.zip | |
Move CreateGroup docs to the struct
The docs were on the impl, when instead they should be on the struct
itself.
Diffstat (limited to 'src')
| -rw-r--r-- | src/framework/create_group.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/framework/create_group.rs b/src/framework/create_group.rs index 03fc33e..cc0b3bd 100644 --- a/src/framework/create_group.rs +++ b/src/framework/create_group.rs @@ -6,9 +6,6 @@ use std::sync::Arc; use ::client::Context; use ::model::Message; -#[derive(Default)] -pub struct CreateGroup(pub CommandGroup); - /// Used to create command groups /// /// # Examples @@ -23,6 +20,9 @@ pub struct CreateGroup(pub CommandGroup); /// .command("name", |c| c /// .exec_str("Hakase"))) /// ``` +#[derive(Default)] +pub struct CreateGroup(pub CommandGroup); + impl CreateGroup { /// Adds a command to group. pub fn command<F>(mut self, command_name: &str, f: F) -> Self |