aboutsummaryrefslogtreecommitdiff
path: root/src/framework
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2017-05-28 13:14:15 -0700
committerZeyla Hellyer <[email protected]>2017-05-28 13:14:38 -0700
commit71f3dbb650f4b0d6434630137ae9eea502a1ebef (patch)
treedd079fe5366eace889de6087f8daa6ddeb6df9c3 /src/framework
parentImplement multiple attachments (diff)
downloadserenity-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/framework')
-rw-r--r--src/framework/create_group.rs6
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