Skip to content

Commit

Permalink
Move CreateGroup docs to the struct
Browse files Browse the repository at this point in the history
The docs were on the impl, when instead they should be on the struct
itself.
  • Loading branch information
Zeyla Hellyer committed May 28, 2017
1 parent 46b79dd commit 71f3dbb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/framework/create_group.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 71f3dbb

Please sign in to comment.