Skip to content

Commit

Permalink
Add no_run to doctests that initialize a Client (#293)
Browse files Browse the repository at this point in the history
  • Loading branch information
Roughsketch authored and arqunis committed Mar 18, 2018
1 parent b71d99f commit 003dc2e
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 22 deletions.
18 changes: 9 additions & 9 deletions src/framework/standard/configuration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ impl Configuration {
///
/// Create a HashSet in-place:
///
/// ```rust
/// ```rust,no_run
/// # use serenity::prelude::*;
/// # struct Handler;
/// #
Expand All @@ -121,7 +121,7 @@ impl Configuration {
///
/// Create a HashSet in-place:
///
/// ```rust
/// ```rust,no_run
/// # use serenity::prelude::*;
/// # struct Handler;
/// #
Expand Down Expand Up @@ -159,7 +159,7 @@ impl Configuration {
///
/// Ignore a set of commands, assuming they exist:
///
/// ```rust
/// ```rust,no_run
/// # use serenity::prelude::*;
/// # struct Handler;
/// #
Expand Down Expand Up @@ -282,7 +282,7 @@ impl Configuration {
///
/// Create a HashSet in-place:
///
/// ```rust
/// ```rust,no_run
/// # use serenity::prelude::*;
/// # struct Handler;
/// #
Expand All @@ -297,7 +297,7 @@ impl Configuration {
///
/// Create a HashSet beforehand:
///
/// ```rust
/// ```rust,no_run
/// # use serenity::prelude::*;
/// # struct Handler;
/// #
Expand Down Expand Up @@ -326,7 +326,7 @@ impl Configuration {
///
/// Assign a basic prefix:
///
/// ```rust
/// ```rust,no_run
/// # use serenity::prelude::*;
/// # struct Handler;
/// #
Expand All @@ -351,7 +351,7 @@ impl Configuration {
///
/// Assign a set of prefixes the bot can respond to:
///
/// ```rust
/// ```rust,no_run
/// # use serenity::prelude::*;
/// # struct Handler;
/// #
Expand All @@ -375,7 +375,7 @@ impl Configuration {
///
/// Have the args be seperated by a comma and a space:
///
/// ```rust
/// ```rust,no_run
/// # use serenity::prelude::*;
/// # struct Handler;
/// #
Expand All @@ -400,7 +400,7 @@ impl Configuration {
///
/// Have the args be seperated by a comma and a space; and a regular space:
///
/// ```rust
/// ```rust,no_run
/// # use serenity::prelude::*;
/// # struct Handler;
/// #
Expand Down
4 changes: 2 additions & 2 deletions src/framework/standard/help_commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ pub fn has_all_requirements(cmd: &Arc<CommandOptions>, msg: &Message) -> bool {
///
/// Use the command with `exec_help`:
///
/// ```rust
/// ```rust,no_run
/// # use serenity::prelude::*;
/// # struct Handler;
/// #
Expand Down Expand Up @@ -326,7 +326,7 @@ pub fn with_embeds<H: BuildHasher>(
///
/// Use the command with `exec_help`:
///
/// ```rust
/// ```rust,no_run
/// # use serenity::prelude::*;
/// # struct Handler;
/// #
Expand Down
22 changes: 11 additions & 11 deletions src/framework/standard/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
/// #
Expand Down Expand Up @@ -314,7 +314,7 @@ impl StandardFramework {
///
/// # Examples
///
/// ```rust
/// ```rust,no_run
/// # use serenity::prelude::*;
/// # struct Handler;
/// #
Expand Down Expand Up @@ -373,7 +373,7 @@ impl StandardFramework {
///
/// # Examples
///
/// ```rust
/// ```rust,no_run
/// # use serenity::prelude::*;
/// # struct Handler;
/// #
Expand Down Expand Up @@ -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;
/// #
Expand Down Expand Up @@ -620,7 +620,7 @@ impl StandardFramework {
///
/// Create and use a simple command:
///
/// ```rust
/// ```rust,no_run
/// # #[macro_use] extern crate serenity;
/// #
/// # fn main() {
Expand Down Expand Up @@ -730,7 +730,7 @@ impl StandardFramework {
///
/// Creating a simple group:
///
/// ```rust
/// ```rust,no_run
/// # use serenity::prelude::*;
/// # struct Handler;
/// #
Expand Down Expand Up @@ -763,7 +763,7 @@ impl StandardFramework {
///
/// Making a simple argument error responder:
///
/// ```rust
/// ```rust,no_run
/// # use serenity::prelude::*;
/// # struct Handler;
/// #
Expand Down Expand Up @@ -804,7 +804,7 @@ impl StandardFramework {
///
/// Using `before` to log command usage:
///
/// ```rust
/// ```rust,no_run
/// # use serenity::prelude::*;
/// # struct Handler;
/// #
Expand All @@ -822,7 +822,7 @@ impl StandardFramework {
///
/// Using before to prevent command usage:
///
/// ```rust
/// ```rust,no_run
/// # use serenity::prelude::*;
/// # struct Handler;
/// #
Expand Down Expand Up @@ -860,7 +860,7 @@ impl StandardFramework {
///
/// Using `after` to log command usage:
///
/// ```rust
/// ```rust,no_run
/// # use serenity::prelude::*;
/// # struct Handler;
/// #
Expand Down Expand Up @@ -890,7 +890,7 @@ impl StandardFramework {
///
/// Using `unrecognised_command`:
///
/// ```rust
/// ```rust,no_run
/// # use serenity::prelude::*;
/// # struct Handler;
/// #
Expand Down

0 comments on commit 003dc2e

Please sign in to comment.