Skip to content

Commit eff0fdc

Browse files
committed
Fix broken links due to multiple roots for the same doc
1 parent 7189ae3 commit eff0fdc

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

src/libcollections/btree/set.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ use Bound;
3535
/// normally only possible through [`Cell`], [`RefCell`], global state, I/O, or unsafe code.
3636
///
3737
/// [`BTreeMap`]: struct.BTreeMap.html
38-
/// [`Ord`]: ../../std/cmp/trait.Ord.html
39-
/// [`Cell`]: ../../std/cell/struct.Cell.html
40-
/// [`RefCell`]: ../../std/cell/struct.RefCell.html
38+
/// [`Ord`]: /std/cmp/trait.Ord.html
39+
/// [`Cell`]: /std/cell/struct.Cell.html
40+
/// [`RefCell`]: /std/cell/struct.RefCell.html
4141
///
4242
/// # Examples
4343
///

src/libcollections/str.rs

+15-15
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,7 @@ impl str {
715715
/// a character matches.
716716
///
717717
/// [`char`]: primitive.char.html
718-
/// [`None`]: option/enum.Option.html#variant.None
718+
/// [`None`]: /std/option/enum.Option.html#variant.None
719719
///
720720
/// # Examples
721721
///
@@ -760,7 +760,7 @@ impl str {
760760
/// a character matches.
761761
///
762762
/// [`char`]: primitive.char.html
763-
/// [`None`]: option/enum.Option.html#variant.None
763+
/// [`None`]: /std/option/enum.Option.html#variant.None
764764
///
765765
/// # Examples
766766
///
@@ -809,7 +809,7 @@ impl str {
809809
/// allows a reverse search and forward/reverse search yields the same
810810
/// elements. This is true for, eg, [`char`] but not for `&str`.
811811
///
812-
/// [`DoubleEndedIterator`]: iter/trait.DoubleEndedIterator.html
812+
/// [`DoubleEndedIterator`]: /std/iter/trait.DoubleEndedIterator.html
813813
///
814814
/// If the pattern allows a reverse search but its results might differ
815815
/// from a forward search, the [`rsplit()`] method can be used.
@@ -922,7 +922,7 @@ impl str {
922922
/// search, and it will be a [`DoubleEndedIterator`] if a forward/reverse
923923
/// search yields the same elements.
924924
///
925-
/// [`DoubleEndedIterator`]: iter/trait.DoubleEndedIterator.html
925+
/// [`DoubleEndedIterator`]: /std/iter/trait.DoubleEndedIterator.html
926926
///
927927
/// For iterating from the front, the [`split()`] method can be used.
928928
///
@@ -979,7 +979,7 @@ impl str {
979979
/// allows a reverse search and forward/reverse search yields the same
980980
/// elements. This is true for, eg, [`char`] but not for `&str`.
981981
///
982-
/// [`DoubleEndedIterator`]: iter/trait.DoubleEndedIterator.html
982+
/// [`DoubleEndedIterator`]: /std/iter/trait.DoubleEndedIterator.html
983983
/// [`char`]: primitive.char.html
984984
///
985985
/// If the pattern allows a reverse search but its results might differ
@@ -1161,7 +1161,7 @@ impl str {
11611161
/// allows a reverse search and forward/reverse search yields the same
11621162
/// elements. This is true for, eg, [`char`] but not for `&str`.
11631163
///
1164-
/// [`DoubleEndedIterator`]: iter/trait.DoubleEndedIterator.html
1164+
/// [`DoubleEndedIterator`]: /std/iter/trait.DoubleEndedIterator.html
11651165
/// [`char`]: primitive.char.html
11661166
///
11671167
/// If the pattern allows a reverse search but its results might differ
@@ -1199,7 +1199,7 @@ impl str {
11991199
/// search, and it will be a [`DoubleEndedIterator`] if a forward/reverse
12001200
/// search yields the same elements.
12011201
///
1202-
/// [`DoubleEndedIterator`]: iter/trait.DoubleEndedIterator.html
1202+
/// [`DoubleEndedIterator`]: /std/iter/trait.DoubleEndedIterator.html
12031203
///
12041204
/// For iterating from the front, the [`matches()`] method can be used.
12051205
///
@@ -1240,7 +1240,7 @@ impl str {
12401240
/// allows a reverse search and forward/reverse search yields the same
12411241
/// elements. This is true for, eg, [`char`] but not for `&str`.
12421242
///
1243-
/// [`DoubleEndedIterator`]: iter/trait.DoubleEndedIterator.html
1243+
/// [`DoubleEndedIterator`]: /std/iter/trait.DoubleEndedIterator.html
12441244
///
12451245
/// If the pattern allows a reverse search but its results might differ
12461246
/// from a forward search, the [`rmatch_indices()`] method can be used.
@@ -1283,7 +1283,7 @@ impl str {
12831283
/// search, and it will be a [`DoubleEndedIterator`] if a forward/reverse
12841284
/// search yields the same elements.
12851285
///
1286-
/// [`DoubleEndedIterator`]: iter/trait.DoubleEndedIterator.html
1286+
/// [`DoubleEndedIterator`]: /std/iter/trait.DoubleEndedIterator.html
12871287
///
12881288
/// For iterating from the front, the [`match_indices()`] method can be used.
12891289
///
@@ -1513,14 +1513,14 @@ impl str {
15131513
///
15141514
/// `parse()` can parse any type that implements the [`FromStr`] trait.
15151515
///
1516-
/// [`FromStr`]: str/trait.FromStr.html
1516+
/// [`FromStr`]: /std/str/trait.FromStr.html
15171517
///
15181518
/// # Errors
15191519
///
15201520
/// Will return [`Err`] if it's not possible to parse this string slice into
15211521
/// the desired type.
15221522
///
1523-
/// [`Err`]: str/trait.FromStr.html#associatedtype.Err
1523+
/// [`Err`]: /std/str/trait.FromStr.html#associatedtype.Err
15241524
///
15251525
/// # Example
15261526
///
@@ -1559,7 +1559,7 @@ impl str {
15591559
/// While doing so, it attempts to find matches of a pattern. If it finds any, it
15601560
/// replaces them with the replacement string slice.
15611561
///
1562-
/// [`String`]: string/struct.String.html
1562+
/// [`String`]: /std/string/struct.String.html
15631563
///
15641564
/// # Examples
15651565
///
@@ -1595,7 +1595,7 @@ impl str {
15951595
/// 'Lowercase' is defined according to the terms of the Unicode Derived Core Property
15961596
/// `Lowercase`.
15971597
///
1598-
/// [`String`]: string/struct.String.html
1598+
/// [`String`]: /std/string/struct.String.html
15991599
///
16001600
/// # Examples
16011601
///
@@ -1671,7 +1671,7 @@ impl str {
16711671
/// 'Uppercase' is defined according to the terms of the Unicode Derived Core Property
16721672
/// `Uppercase`.
16731673
///
1674-
/// [`String`]: string/struct.String.html
1674+
/// [`String`]: /std/string/struct.String.html
16751675
///
16761676
/// # Examples
16771677
///
@@ -1715,7 +1715,7 @@ impl str {
17151715

17161716
/// Converts a `Box<str>` into a [`String`] without copying or allocating.
17171717
///
1718-
/// [`String`]: string/struct.String.html
1718+
/// [`String`]: /std/string/struct.String.html
17191719
///
17201720
/// # Examples
17211721
///

0 commit comments

Comments
 (0)