You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You should link to the standard library without specifying a URL in a fashion similar to [rustdoc intra-doc links][intra]. Some examples:
23
+
You should link to the standard library without specifying a URL, in a fashion similar to [rustdoc intra-doc links][intra]. Some examples:
24
24
25
25
We can link to the page on `Option`:
26
26
@@ -52,16 +52,16 @@ Explicit namespace disambiguation is also supported:
52
52
[`std::vec`](mod@std::vec)
53
53
```
54
54
55
-
Beware there are some limitations, for example:
55
+
Beware of some limitations, for example:
56
56
57
-
- Links to rexports from `std_arch` don't work due to <https://github.com/rust-lang/rust/issues/96506>.
57
+
- Links to re-exports from `std_arch` don't work due to <https://github.com/rust-lang/rust/issues/96506>.
58
58
- Links to keywords aren't supported.
59
-
- Links to trait impls where the trait is not in the prelude doesn't work. Traits must be in scope, and there currently isn't a way to add those.
59
+
- Links to trait impls where the trait is not in the prelude don't work. Traits must be in scope, and currently there is no way to add them.
60
60
- If there are multiple generic implementations, it will link to one randomly (see <https://github.com/rust-lang/rust/issues/76895>).
61
61
62
62
When running into a rustdoc limitation, consider manually linking to the correct page using a relative link. For example, `../std/arch/macro.is_x86_feature_detected.html`.
63
63
64
-
When rendering the Reference locally, by default it uses relative links to conform with how the books are published. This probably isn't what you want, so you usually will want to set the [`SPEC_RELATIVE=0` environment variable][rel] so that the links go to the live site instead.
64
+
When rendering the Reference locally, it uses relative links by default to conform with how the books are published. This probably isn't what you want, so you will usually want to set the [`SPEC_RELATIVE=0` environment variable][rel] so that the links go to the live site instead.
0 commit comments