aboutsummaryrefslogtreecommitdiff
path: root/src/cache
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2017-11-01 13:10:16 -0700
committerZeyla Hellyer <[email protected]>2017-11-01 13:10:16 -0700
commit2c59f87c1408ef633b8749f6688dc42129054a36 (patch)
treeae94858d2a86dd23c0f4ad64c369069909c90050 /src/cache
parentFix no-client cache tests (diff)
downloadserenity-2c59f87c1408ef633b8749f6688dc42129054a36.tar.xz
serenity-2c59f87c1408ef633b8749f6688dc42129054a36.zip
Fix doctests for a variety of feature targets
Diffstat (limited to 'src/cache')
-rw-r--r--src/cache/mod.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/cache/mod.rs b/src/cache/mod.rs
index 357092f..a663a79 100644
--- a/src/cache/mod.rs
+++ b/src/cache/mod.rs
@@ -266,12 +266,14 @@ impl Cache {
/// use serenity::CACHE;
///
/// struct Handler;
+ ///
/// impl EventHandler for Handler {
/// fn on_ready(&self, _: Context, _: Ready) {
- /// println!("Guilds in the Cache: {:?}", CACHE.read().unwrap().all_guilds());
+ /// let guilds = CACHE.read().unwrap().guilds.len();
+ ///
+ /// println!("Guilds in the Cache: {}", guilds);
/// }
/// }
- /// let mut client = Client::new("token", Handler);
/// # }
/// #
/// # #[cfg(not(feature = "client"))]