From 71f3dbb650f4b0d6434630137ae9eea502a1ebef Mon Sep 17 00:00:00 2001 From: Zeyla Hellyer Date: Sun, 28 May 2017 13:14:15 -0700 Subject: Move CreateGroup docs to the struct The docs were on the impl, when instead they should be on the struct itself. --- src/framework/create_group.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/framework') 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(mut self, command_name: &str, f: F) -> Self -- cgit v1.2.3