aboutsummaryrefslogtreecommitdiff
path: root/src/model
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/model
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/model')
-rw-r--r--src/model/error.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/model/error.rs b/src/model/error.rs
index 57801da..454b94b 100644
--- a/src/model/error.rs
+++ b/src/model/error.rs
@@ -13,10 +13,10 @@ use super::Permissions;
/// re-ban all members with an odd discriminator:
///
/// ```rust,no_run
-/// # #[cfg(feature="client")]
+/// # #[cfg(all(feature = "client", feature = "model"))]
/// # use std::error::Error;
/// #
-/// # #[cfg(feature="client")]
+/// # #[cfg(all(feature = "client", feature = "model"))]
/// # fn try_main() -> Result<(), Box<Error>> {
/// use serenity::prelude::*;
/// use serenity::model::*;
@@ -51,12 +51,12 @@ use super::Permissions;
/// # Ok(())
/// # }
/// #
-/// # #[cfg(feature="client")]
+/// # #[cfg(all(feature = "client", feature = "model"))]
/// # fn main() {
/// # try_main().unwrap();
/// # }
/// #
-/// # #[cfg(not(feature="client"))]
+/// # #[cfg(not(all(feature="client", feature = "model")))]
/// # fn main() { }
/// ```
///