]> git.lizzy.rs Git - rust.git/commitdiff
Fix some links in str docs
authorFlorian Hartwig <florian.j.hartwig@gmail.com>
Sat, 26 Dec 2015 11:16:48 +0000 (12:16 +0100)
committerFlorian Hartwig <florian.j.hartwig@gmail.com>
Sat, 26 Dec 2015 11:16:48 +0000 (12:16 +0100)
src/libcollections/str.rs

index 68669b68d294a3b731d3a11436d8ab1042f60c22..92c23ef2f38b828f8827754f21ddfd123b5c84e0 100644 (file)
@@ -640,7 +640,7 @@ pub fn split_at_mut(&mut self, mid: usize) -> (&mut str, &mut str) {
     /// Value, and may not match your idea of what a 'character' is. Iteration
     /// over grapheme clusters may be what you actually want.
     ///
-    /// [`char`]: ../primitive.char.html
+    /// [`char`]: primitive.char.html
     ///
     /// # Examples
     ///
@@ -1551,7 +1551,7 @@ pub fn trim_right(&self) -> &str {
     /// The pattern can be a `&str`, [`char`], or a closure that determines
     /// if a character matches.
     ///
-    /// [`char`]: primtive.char.html
+    /// [`char`]: primitive.char.html
     ///
     /// # Examples
     ///
@@ -1643,7 +1643,7 @@ pub fn trim_right_matches<'a, P: Pattern<'a>>(&'a self, pat: P) -> &'a str
     ///
     /// `parse()` can parse any type that implements the [`FromStr`] trait.
     ///
-    /// [`FromStr`]: trait.FromStr.html
+    /// [`FromStr`]: str/trait.FromStr.html
     ///
     /// # Failure
     ///