From 6c2c7b73d9fb5ed46b642e323065c560ffef9ef2 Mon Sep 17 00:00:00 2001 From: Illia K Date: Mon, 28 Nov 2016 12:28:23 +0000 Subject: Improve docs and add new message builder methods Add documentation for some missing methods - such as Game methods - and add more methods to the Message Builder. --- src/utils/mod.rs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/utils/mod.rs') diff --git a/src/utils/mod.rs b/src/utils/mod.rs index 2356ece..0c154dd 100644 --- a/src/utils/mod.rs +++ b/src/utils/mod.rs @@ -148,14 +148,8 @@ pub fn parse_invite(code: &str) -> &str { /// ```rust,no_run /// use serenity::utils; /// -/// let image = match utils::read_image("./cat.png") { -/// Ok(image) => image, -/// Err(why) => { -/// // properly handle the error -/// -/// return; -/// }, -/// }; +/// let image = utils::read_image("./cat.png") +/// .expect("Failed to read image"); /// ``` /// /// [`EditProfile::avatar`]: ../builder/struct.EditProfile.html#method.avatar -- cgit v1.2.3