Skip to content

Commit a6228ba

Browse files
authored
Fix link to doc_cfg docs in cargo book (#16404)
Needed for CI of rust-lang/rust#150055 to pass. Also: I used a full URL instead of a relative path to avoid this can kind of issues in the future since `cargo` is a submodule and not a subtree.
2 parents c0be385 + 899771d commit a6228ba

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/doc/src/reference/features.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ control which features are enabled when the documentation is built. See
495495

496496
> **Note**: Rustdoc has experimental support for annotating the documentation
497497
> to indicate which features are required to use certain APIs. See the
498-
> [`doc_cfg`] documentation for more details. An example is the [`syn`
498+
> `doc_cfg` documentation for more details. An example is the [`syn`
499499
> documentation], where you can see colored boxes which note which features
500500
> are required to use it.
501501
@@ -506,7 +506,6 @@ control which features are enabled when the documentation is built. See
506506
[regex crate source]: https://github.com/rust-lang/regex/blob/1.4.2/src/lib.rs#L488-L583
507507
[regex-docs-rs]: https://docs.rs/regex/1.4.2/regex/#crate-features
508508
[sccache]: https://github.com/mozilla/sccache/blob/0.2.13/README.md#build-requirements
509-
[`doc_cfg`]: ../../unstable-book/language-features/doc-cfg.html
510509
[`syn` documentation]: https://docs.rs/syn/1.0.54/syn/#modules
511510

512511
### Discovering features

0 commit comments

Comments
 (0)