From 94131908f00a8cbb714f3a93066e2a83dfc1c5b3 Mon Sep 17 00:00:00 2001 From: Austin Hellyer Date: Tue, 24 Jan 2017 12:07:41 -0800 Subject: Fix docs links --- src/client/error.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/client/error.rs') 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 { -- cgit v1.2.3