diff options
| author | Illia K <[email protected]> | 2016-11-28 12:28:23 +0000 |
|---|---|---|
| committer | Austin Hellyer <[email protected]> | 2016-11-28 10:16:22 -0800 |
| commit | 6c2c7b73d9fb5ed46b642e323065c560ffef9ef2 (patch) | |
| tree | 8cb587fd6fcd8e3e06f8960475ea2a54432e3d18 /src/utils/mod.rs | |
| parent | Add an initial tiny test suite to get Travis going (diff) | |
| download | serenity-6c2c7b73d9fb5ed46b642e323065c560ffef9ef2.tar.xz serenity-6c2c7b73d9fb5ed46b642e323065c560ffef9ef2.zip | |
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.
Diffstat (limited to 'src/utils/mod.rs')
| -rw-r--r-- | src/utils/mod.rs | 10 |
1 files changed, 2 insertions, 8 deletions
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 |