From 27c34534e441503926da372c98cdf79236256c36 Mon Sep 17 00:00:00 2001 From: Austin Hellyer Date: Sat, 5 Nov 2016 17:35:14 -0700 Subject: Convert all doc anchors to named anchors Convert all of the non-named anchors in docs to named anchors. Example: ```md Kicks a [`Member`](../model/struct.Member.html) from the specified [`Guild`](../model/struct.Guild.html) if they are in it. ``` is now written as: ```md Kicks a [`Member`] from the specified [`Guild`] if they are in it. [`Guild`]: ../model/struct.Guild.html [`Member`]: ../model/struct.Member.html ``` --- src/model/id.rs | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'src/model') diff --git a/src/model/id.rs b/src/model/id.rs index 97ee6d6..c8eff69 100644 --- a/src/model/id.rs +++ b/src/model/id.rs @@ -18,8 +18,10 @@ impl ChannelId { http::get_channel(self.0) } - /// Returns a [Mention](struct.Mention.html) which will link to the - /// channel. + /// Returns a [`Mention`] which will link to the [`Channel`]. + /// + /// [`Channel`]: enum.Channel.html + /// [`Mention`]: struct.Mention.html pub fn mention(&self) -> Mention { Mention { id: self.0, @@ -70,7 +72,9 @@ impl GuildId { http::get_guild(self.0) } - /// Mentions the [Guild](struct.Guild.html)'s default channel. + /// Mentions the [`Guild`]'s default channel. + /// + /// [`Guild`]: struct.Guild.html pub fn mention(&self) -> Mention { Mention { id: self.0, @@ -137,8 +141,9 @@ impl RoleId { .cloned() } - /// Returns a [Mention](struct.Mention.html) which will ping members of the - /// role. + /// Returns a [`Mention`] which will ping members of the role. + /// + /// [`Mention`]: struct.Mention.html pub fn mention(&self) -> Mention { Mention { id: self.0, @@ -166,7 +171,9 @@ impl From for UserId { } impl UserId { - /// Returns a [Mention](struct.Mention.html) which will ping the user. + /// Returns a [`Mention`] which will ping the user. + /// + /// [`Mention`]: struct.Mention.html pub fn mention(&self) -> Mention { Mention { id: self.0, -- cgit v1.2.3