diff options
| author | Maiddog <[email protected]> | 2018-03-18 06:02:00 -0500 |
|---|---|---|
| committer | alex <[email protected]> | 2018-03-18 12:02:00 +0100 |
| commit | 003dc2eed0f09cd214373f1581b7794d1483a689 (patch) | |
| tree | 9f66622ed84e27384c7b8eee536c875520562c90 /src/framework/standard/mod.rs | |
| parent | Remove useless clones (#292) (diff) | |
| download | serenity-003dc2eed0f09cd214373f1581b7794d1483a689.tar.xz serenity-003dc2eed0f09cd214373f1581b7794d1483a689.zip | |
Add no_run to doctests that initialize a Client (#293)
Diffstat (limited to 'src/framework/standard/mod.rs')
| -rw-r--r-- | src/framework/standard/mod.rs | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/framework/standard/mod.rs b/src/framework/standard/mod.rs index 83b284d..03abce8 100644 --- a/src/framework/standard/mod.rs +++ b/src/framework/standard/mod.rs @@ -275,7 +275,7 @@ impl StandardFramework { /// Create and use a bucket that limits a command to 3 uses per 10 seconds with /// a 2 second delay inbetween invocations: /// - /// ```rust + /// ```rust,no_run /// # use serenity::prelude::*; /// # struct Handler; /// # @@ -314,7 +314,7 @@ impl StandardFramework { /// /// # Examples /// - /// ```rust + /// ```rust,no_run /// # use serenity::prelude::*; /// # struct Handler; /// # @@ -373,7 +373,7 @@ impl StandardFramework { /// /// # Examples /// - /// ```rust + /// ```rust,no_run /// # use serenity::prelude::*; /// # struct Handler; /// # @@ -425,7 +425,7 @@ impl StandardFramework { /// /// Create and use a simple bucket that has a 2 second delay between invocations: /// - /// ```rust + /// ```rust,no_run /// # use serenity::prelude::*; /// # struct Handler; /// # @@ -620,7 +620,7 @@ impl StandardFramework { /// /// Create and use a simple command: /// - /// ```rust + /// ```rust,no_run /// # #[macro_use] extern crate serenity; /// # /// # fn main() { @@ -730,7 +730,7 @@ impl StandardFramework { /// /// Creating a simple group: /// - /// ```rust + /// ```rust,no_run /// # use serenity::prelude::*; /// # struct Handler; /// # @@ -763,7 +763,7 @@ impl StandardFramework { /// /// Making a simple argument error responder: /// - /// ```rust + /// ```rust,no_run /// # use serenity::prelude::*; /// # struct Handler; /// # @@ -804,7 +804,7 @@ impl StandardFramework { /// /// Using `before` to log command usage: /// - /// ```rust + /// ```rust,no_run /// # use serenity::prelude::*; /// # struct Handler; /// # @@ -822,7 +822,7 @@ impl StandardFramework { /// /// Using before to prevent command usage: /// - /// ```rust + /// ```rust,no_run /// # use serenity::prelude::*; /// # struct Handler; /// # @@ -860,7 +860,7 @@ impl StandardFramework { /// /// Using `after` to log command usage: /// - /// ```rust + /// ```rust,no_run /// # use serenity::prelude::*; /// # struct Handler; /// # @@ -890,7 +890,7 @@ impl StandardFramework { /// /// Using `unrecognised_command`: /// - /// ```rust + /// ```rust,no_run /// # use serenity::prelude::*; /// # struct Handler; /// # |