aboutsummaryrefslogtreecommitdiff
path: root/src/model/user.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/model/user.rs')
-rw-r--r--src/model/user.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/model/user.rs b/src/model/user.rs
index bf247f1..7eea83e 100644
--- a/src/model/user.rs
+++ b/src/model/user.rs
@@ -634,7 +634,8 @@ impl User {
/// // normal message handling here
/// }
/// }
- /// let mut client = Client::new("token", Handler);
+ ///
+ /// let mut client = Client::new("token", Handler).unwrap();
/// #
/// use serenity::model::UserId;
/// use serenity::CACHE;
@@ -712,7 +713,9 @@ impl User {
/// }
/// }
/// }
- /// let mut client = Client::new("token", Handler); client.start().unwrap();
+ /// let mut client = Client::new("token", Handler).unwrap();
+ ///
+ /// client.start().unwrap();
/// ```
#[inline]
pub fn tag(&self) -> String { tag(&self.name, self.discriminator) }