aboutsummaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorAustin Hellyer <[email protected]>2016-11-20 08:55:39 -0800
committerAustin Hellyer <[email protected]>2016-11-20 08:55:39 -0800
commitdb1c9553133b270a811159a8b90e3578eeca5acd (patch)
treeee59e1a74f7f51ef79574e6a905efbec2557b469 /src/client
parentFix voice example for state method renamings (diff)
downloadserenity-db1c9553133b270a811159a8b90e3578eeca5acd.tar.xz
serenity-db1c9553133b270a811159a8b90e3578eeca5acd.zip
Fix context doctests
Diffstat (limited to 'src/client')
-rw-r--r--src/client/context.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client/context.rs b/src/client/context.rs
index 3d9b249..d262096 100644
--- a/src/client/context.rs
+++ b/src/client/context.rs
@@ -1146,7 +1146,7 @@ impl Context {
///
/// fn ping(context: Context, message: Message, _arguments: Vec<String>) {
/// let state = STATE.lock().unwrap();
- /// let ch = state.find_channel(message.channel_id);
+ /// let ch = state.get_channel(message.channel_id);
/// let name = match ch {
/// Some(Channel::Public(ch)) => ch.name.clone(),
/// _ => "Unknown".to_owned(),
@@ -1285,7 +1285,7 @@ impl Context {
/// Setting the current user as having no game, being [`Idle`],
/// and setting `afk` to `true`:
///
- /// ```rust,no_run
+ /// ```rust,ignore
/// use serenity::model::OnlineStatus;
///
/// // assuming you are in a context
@@ -1296,8 +1296,8 @@ impl Context {
/// Setting the current user as playing "Heroes of the Storm", being
/// [`DoNotDisturb`], and setting `afk` to `false`:
///
- /// ```rust,no_run
- /// use serenity::model::OnlineStatus;
+ /// ```rust,ignore
+ /// use serenity::model::{Game, OnlineStatus};
///
/// // assuming you are in a context
///