aboutsummaryrefslogtreecommitdiff
path: root/src/model/error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/model/error.rs')
-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 835678a..c2f568b 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::*;
@@ -53,12 +53,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() { }
/// ```
///