diff options
| author | Austin Hellyer <[email protected]> | 2017-01-24 12:07:41 -0800 |
|---|---|---|
| committer | Austin Hellyer <[email protected]> | 2017-01-24 12:07:41 -0800 |
| commit | 94131908f00a8cbb714f3a93066e2a83dfc1c5b3 (patch) | |
| tree | 86cb349c3093ab9722ae47a649deebe8da9d6c13 /src/client/error.rs | |
| parent | Properly drop on binds (diff) | |
| download | serenity-94131908f00a8cbb714f3a93066e2a83dfc1c5b3.tar.xz serenity-94131908f00a8cbb714f3a93066e2a83dfc1c5b3.zip | |
Fix docs links
Diffstat (limited to 'src/client/error.rs')
| -rw-r--r-- | src/client/error.rs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/client/error.rs b/src/client/error.rs index 3975576..8a92cdd 100644 --- a/src/client/error.rs +++ b/src/client/error.rs @@ -9,8 +9,8 @@ use ::model::{ChannelType, Permissions}; /// /// # Examples /// -/// Matching an [`Error`] with this variant may look something like the -/// following for the [`Client::ban`] method, which in this example is used to +/// Matching an [`Error`] with this variant would look something like the +/// following for the [`GuildId::ban`] method, which in this example is used to /// re-ban all members with an odd discriminator: /// /// ```rust,no_run @@ -29,7 +29,7 @@ use ::model::{ChannelType, Permissions}; /// return; /// } /// -/// match context.ban(guild_id, user, 8) { +/// match guild_id.ban(user, 8) { /// Ok(()) => { /// // Ban successful. /// }, @@ -45,8 +45,9 @@ use ::model::{ChannelType, Permissions}; /// /// [`Client`]: struct.Client.html /// [`Context`]: struct.Context.html -/// [`Context::ban`]: struct.Context.html#method.ban +/// [`Error`]: ../enum.Error.html /// [`Error::Client`]: ../enum.Error.html#variant.Client +/// [`GuildId::ban`]: ../model/struct.GuildId.html#method.ban #[allow(enum_variant_names)] #[derive(Clone, Debug, Eq, Hash, PartialEq)] pub enum Error { |