Skip to content

Commit fb26b0c

Browse files
committed
Use intra-doc-links in place of explicit paths
These docs are available from two different paths: ``` /std/string/struct.String.html /std/primitive.str.html ``` Because they're at different levels, we can't construct a single relative path that works for both. However, we can ask the tooling to generate the correct relative path for each source with an `intra-doc-link`.
1 parent d5e7aee commit fb26b0c

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

src/libcore/str/mod.rs

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3013,7 +3013,7 @@ impl str {
30133013
/// function or closure that determines if a character matches.
30143014
///
30153015
/// [`char`]: primitive.char.html
3016-
/// [pattern]: ../str/pattern/index.html
3016+
/// [pattern]: crate::str::pattern
30173017
///
30183018
/// # Examples
30193019
///
@@ -3040,7 +3040,7 @@ impl str {
30403040
/// function or closure that determines if a character matches.
30413041
///
30423042
/// [`char`]: primitive.char.html
3043-
/// [pattern]: ../str/pattern/index.html
3043+
/// [pattern]: crate::str::pattern
30443044
///
30453045
/// # Examples
30463046
///
@@ -3066,7 +3066,7 @@ impl str {
30663066
/// function or closure that determines if a character matches.
30673067
///
30683068
/// [`char`]: primitive.char.html
3069-
/// [pattern]: ../str/pattern/index.html
3069+
/// [pattern]: crate::str::pattern
30703070
///
30713071
/// # Examples
30723072
///
@@ -3096,7 +3096,7 @@ impl str {
30963096
///
30973097
/// [`None`]: option/enum.Option.html#variant.None
30983098
/// [`char`]: primitive.char.html
3099-
/// [pattern]: ../str/pattern/index.html
3099+
/// [pattern]: crate::str::pattern
31003100
///
31013101
/// # Examples
31023102
///
@@ -3145,7 +3145,7 @@ impl str {
31453145
///
31463146
/// [`None`]: option/enum.Option.html#variant.None
31473147
/// [`char`]: primitive.char.html
3148-
/// [pattern]: ../str/pattern/index.html
3148+
/// [pattern]: crate::str::pattern
31493149
///
31503150
/// # Examples
31513151
///
@@ -3191,7 +3191,7 @@ impl str {
31913191
/// function or closure that determines if a character matches.
31923192
///
31933193
/// [`char`]: primitive.char.html
3194-
/// [pattern]: ../str/pattern/index.html
3194+
/// [pattern]: crate::str::pattern
31953195
///
31963196
/// # Iterator behavior
31973197
///
@@ -3313,7 +3313,7 @@ impl str {
33133313
/// function or closure that determines if a character matches.
33143314
///
33153315
/// [`char`]: primitive.char.html
3316-
/// [pattern]: ../str/pattern/index.html
3316+
/// [pattern]: crate::str::pattern
33173317
///
33183318
/// # Examples
33193319
///
@@ -3353,7 +3353,7 @@ impl str {
33533353
/// function or closure that determines if a character matches.
33543354
///
33553355
/// [`char`]: primitive.char.html
3356-
/// [pattern]: ../str/pattern/index.html
3356+
/// [pattern]: crate::str::pattern
33573357
///
33583358
/// # Iterator behavior
33593359
///
@@ -3407,7 +3407,7 @@ impl str {
34073407
/// function or closure that determines if a character matches.
34083408
///
34093409
/// [`char`]: primitive.char.html
3410-
/// [pattern]: ../str/pattern/index.html
3410+
/// [pattern]: crate::str::pattern
34113411
///
34123412
/// Equivalent to [`split`], except that the trailing substring
34133413
/// is skipped if empty.
@@ -3454,7 +3454,7 @@ impl str {
34543454
/// function or closure that determines if a character matches.
34553455
///
34563456
/// [`char`]: primitive.char.html
3457-
/// [pattern]: ../str/pattern/index.html
3457+
/// [pattern]: crate::str::pattern
34583458
///
34593459
/// Equivalent to [`split`], except that the trailing substring is
34603460
/// skipped if empty.
@@ -3503,7 +3503,7 @@ impl str {
35033503
/// function or closure that determines if a character matches.
35043504
///
35053505
/// [`char`]: primitive.char.html
3506-
/// [pattern]: ../str/pattern/index.html
3506+
/// [pattern]: crate::str::pattern
35073507
///
35083508
/// # Iterator behavior
35093509
///
@@ -3556,7 +3556,7 @@ impl str {
35563556
/// function or closure that determines if a character matches.
35573557
///
35583558
/// [`char`]: primitive.char.html
3559-
/// [pattern]: ../str/pattern/index.html
3559+
/// [pattern]: crate::str::pattern
35603560
///
35613561
/// # Iterator behavior
35623562
///
@@ -3604,7 +3604,7 @@ impl str {
36043604
/// function or closure that determines if a character matches.
36053605
///
36063606
/// [`char`]: primitive.char.html
3607-
/// [pattern]: ../str/pattern/index.html
3607+
/// [pattern]: crate::str::pattern
36083608
///
36093609
/// # Iterator behavior
36103610
///
@@ -3643,7 +3643,7 @@ impl str {
36433643
/// function or closure that determines if a character matches.
36443644
///
36453645
/// [`char`]: primitive.char.html
3646-
/// [pattern]: ../str/pattern/index.html
3646+
/// [pattern]: crate::str::pattern
36473647
///
36483648
/// # Iterator behavior
36493649
///
@@ -3687,7 +3687,7 @@ impl str {
36873687
/// function or closure that determines if a character matches.
36883688
///
36893689
/// [`char`]: primitive.char.html
3690-
/// [pattern]: ../str/pattern/index.html
3690+
/// [pattern]: crate::str::pattern
36913691
///
36923692
/// # Iterator behavior
36933693
///
@@ -3732,7 +3732,7 @@ impl str {
37323732
/// function or closure that determines if a character matches.
37333733
///
37343734
/// [`char`]: primitive.char.html
3735-
/// [pattern]: ../str/pattern/index.html
3735+
/// [pattern]: crate::str::pattern
37363736
///
37373737
/// # Iterator behavior
37383738
///
@@ -3953,7 +3953,7 @@ impl str {
39533953
/// or closure that determines if a character matches.
39543954
///
39553955
/// [`char`]: primitive.char.html
3956-
/// [pattern]: ../str/pattern/index.html
3956+
/// [pattern]: crate::str::pattern
39573957
///
39583958
/// # Examples
39593959
///
@@ -4001,7 +4001,7 @@ impl str {
40014001
/// function or closure that determines if a character matches.
40024002
///
40034003
/// [`char`]: primitive.char.html
4004-
/// [pattern]: ../str/pattern/index.html
4004+
/// [pattern]: crate::str::pattern
40054005
///
40064006
/// # Text directionality
40074007
///
@@ -4046,7 +4046,7 @@ impl str {
40464046
/// function or closure that determines if a character matches.
40474047
///
40484048
/// [`char`]: primitive.char.html
4049-
/// [pattern]: ../str/pattern/index.html
4049+
/// [pattern]: crate::str::pattern
40504050
///
40514051
/// # Examples
40524052
///
@@ -4074,7 +4074,7 @@ impl str {
40744074
/// function or closure that determines if a character matches.
40754075
///
40764076
/// [`char`]: primitive.char.html
4077-
/// [pattern]: ../str/pattern/index.html
4077+
/// [pattern]: crate::str::pattern
40784078
///
40794079
/// # Examples
40804080
///
@@ -4101,7 +4101,7 @@ impl str {
41014101
/// function or closure that determines if a character matches.
41024102
///
41034103
/// [`char`]: primitive.char.html
4104-
/// [pattern]: ../str/pattern/index.html
4104+
/// [pattern]: crate::str::pattern
41054105
///
41064106
/// # Text directionality
41074107
///
@@ -4150,7 +4150,7 @@ impl str {
41504150
/// function or closure that determines if a character matches.
41514151
///
41524152
/// [`char`]: primitive.char.html
4153-
/// [pattern]: ../str/pattern/index.html
4153+
/// [pattern]: crate::str::pattern
41544154
///
41554155
/// # Text directionality
41564156
///
@@ -4187,7 +4187,7 @@ impl str {
41874187
/// function or closure that determines if a character matches.
41884188
///
41894189
/// [`char`]: primitive.char.html
4190-
/// [pattern]: ../str/pattern/index.html
4190+
/// [pattern]: crate::str::pattern
41914191
///
41924192
/// # Text directionality
41934193
///

0 commit comments

Comments
 (0)