Skip to content

Commit

Permalink
Use intra-doc-links in place of explicit paths
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
sethp committed Jul 4, 2020
1 parent d5e7aee commit fb26b0c
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions src/libcore/str/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3013,7 +3013,7 @@ impl str {
/// function or closure that determines if a character matches.
///
/// [`char`]: primitive.char.html
/// [pattern]: ../str/pattern/index.html
/// [pattern]: crate::str::pattern
///
/// # Examples
///
Expand All @@ -3040,7 +3040,7 @@ impl str {
/// function or closure that determines if a character matches.
///
/// [`char`]: primitive.char.html
/// [pattern]: ../str/pattern/index.html
/// [pattern]: crate::str::pattern
///
/// # Examples
///
Expand All @@ -3066,7 +3066,7 @@ impl str {
/// function or closure that determines if a character matches.
///
/// [`char`]: primitive.char.html
/// [pattern]: ../str/pattern/index.html
/// [pattern]: crate::str::pattern
///
/// # Examples
///
Expand Down Expand Up @@ -3096,7 +3096,7 @@ impl str {
///
/// [`None`]: option/enum.Option.html#variant.None
/// [`char`]: primitive.char.html
/// [pattern]: ../str/pattern/index.html
/// [pattern]: crate::str::pattern
///
/// # Examples
///
Expand Down Expand Up @@ -3145,7 +3145,7 @@ impl str {
///
/// [`None`]: option/enum.Option.html#variant.None
/// [`char`]: primitive.char.html
/// [pattern]: ../str/pattern/index.html
/// [pattern]: crate::str::pattern
///
/// # Examples
///
Expand Down Expand Up @@ -3191,7 +3191,7 @@ impl str {
/// function or closure that determines if a character matches.
///
/// [`char`]: primitive.char.html
/// [pattern]: ../str/pattern/index.html
/// [pattern]: crate::str::pattern
///
/// # Iterator behavior
///
Expand Down Expand Up @@ -3313,7 +3313,7 @@ impl str {
/// function or closure that determines if a character matches.
///
/// [`char`]: primitive.char.html
/// [pattern]: ../str/pattern/index.html
/// [pattern]: crate::str::pattern
///
/// # Examples
///
Expand Down Expand Up @@ -3353,7 +3353,7 @@ impl str {
/// function or closure that determines if a character matches.
///
/// [`char`]: primitive.char.html
/// [pattern]: ../str/pattern/index.html
/// [pattern]: crate::str::pattern
///
/// # Iterator behavior
///
Expand Down Expand Up @@ -3407,7 +3407,7 @@ impl str {
/// function or closure that determines if a character matches.
///
/// [`char`]: primitive.char.html
/// [pattern]: ../str/pattern/index.html
/// [pattern]: crate::str::pattern
///
/// Equivalent to [`split`], except that the trailing substring
/// is skipped if empty.
Expand Down Expand Up @@ -3454,7 +3454,7 @@ impl str {
/// function or closure that determines if a character matches.
///
/// [`char`]: primitive.char.html
/// [pattern]: ../str/pattern/index.html
/// [pattern]: crate::str::pattern
///
/// Equivalent to [`split`], except that the trailing substring is
/// skipped if empty.
Expand Down Expand Up @@ -3503,7 +3503,7 @@ impl str {
/// function or closure that determines if a character matches.
///
/// [`char`]: primitive.char.html
/// [pattern]: ../str/pattern/index.html
/// [pattern]: crate::str::pattern
///
/// # Iterator behavior
///
Expand Down Expand Up @@ -3556,7 +3556,7 @@ impl str {
/// function or closure that determines if a character matches.
///
/// [`char`]: primitive.char.html
/// [pattern]: ../str/pattern/index.html
/// [pattern]: crate::str::pattern
///
/// # Iterator behavior
///
Expand Down Expand Up @@ -3604,7 +3604,7 @@ impl str {
/// function or closure that determines if a character matches.
///
/// [`char`]: primitive.char.html
/// [pattern]: ../str/pattern/index.html
/// [pattern]: crate::str::pattern
///
/// # Iterator behavior
///
Expand Down Expand Up @@ -3643,7 +3643,7 @@ impl str {
/// function or closure that determines if a character matches.
///
/// [`char`]: primitive.char.html
/// [pattern]: ../str/pattern/index.html
/// [pattern]: crate::str::pattern
///
/// # Iterator behavior
///
Expand Down Expand Up @@ -3687,7 +3687,7 @@ impl str {
/// function or closure that determines if a character matches.
///
/// [`char`]: primitive.char.html
/// [pattern]: ../str/pattern/index.html
/// [pattern]: crate::str::pattern
///
/// # Iterator behavior
///
Expand Down Expand Up @@ -3732,7 +3732,7 @@ impl str {
/// function or closure that determines if a character matches.
///
/// [`char`]: primitive.char.html
/// [pattern]: ../str/pattern/index.html
/// [pattern]: crate::str::pattern
///
/// # Iterator behavior
///
Expand Down Expand Up @@ -3953,7 +3953,7 @@ impl str {
/// or closure that determines if a character matches.
///
/// [`char`]: primitive.char.html
/// [pattern]: ../str/pattern/index.html
/// [pattern]: crate::str::pattern
///
/// # Examples
///
Expand Down Expand Up @@ -4001,7 +4001,7 @@ impl str {
/// function or closure that determines if a character matches.
///
/// [`char`]: primitive.char.html
/// [pattern]: ../str/pattern/index.html
/// [pattern]: crate::str::pattern
///
/// # Text directionality
///
Expand Down Expand Up @@ -4046,7 +4046,7 @@ impl str {
/// function or closure that determines if a character matches.
///
/// [`char`]: primitive.char.html
/// [pattern]: ../str/pattern/index.html
/// [pattern]: crate::str::pattern
///
/// # Examples
///
Expand Down Expand Up @@ -4074,7 +4074,7 @@ impl str {
/// function or closure that determines if a character matches.
///
/// [`char`]: primitive.char.html
/// [pattern]: ../str/pattern/index.html
/// [pattern]: crate::str::pattern
///
/// # Examples
///
Expand All @@ -4101,7 +4101,7 @@ impl str {
/// function or closure that determines if a character matches.
///
/// [`char`]: primitive.char.html
/// [pattern]: ../str/pattern/index.html
/// [pattern]: crate::str::pattern
///
/// # Text directionality
///
Expand Down Expand Up @@ -4150,7 +4150,7 @@ impl str {
/// function or closure that determines if a character matches.
///
/// [`char`]: primitive.char.html
/// [pattern]: ../str/pattern/index.html
/// [pattern]: crate::str::pattern
///
/// # Text directionality
///
Expand Down Expand Up @@ -4187,7 +4187,7 @@ impl str {
/// function or closure that determines if a character matches.
///
/// [`char`]: primitive.char.html
/// [pattern]: ../str/pattern/index.html
/// [pattern]: crate::str::pattern
///
/// # Text directionality
///
Expand Down

0 comments on commit fb26b0c

Please sign in to comment.