Skip to content

Commit 1491c6f

Browse files
Rustdoc Book refer to rustdoc::missing_doc_code_examples. Fixes #109592.
1 parent 439292b commit 1491c6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/rustdoc/src/write-documentation/what-to-include.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ warning: 1 warning emitted
3939
As a library author, adding the lint `#![deny(missing_docs)]` is a great way to
4040
ensure the project does not drift away from being documented well, and
4141
`#![warn(missing_docs)]` is a good way to move towards comprehensive
42-
documentation. In addition to docs, `#![deny(missing_doc_code_examples)]`
42+
documentation. In addition to docs, `#![deny(rustdoc::missing_doc_code_examples)]`
4343
ensures each function contains a usage example. In our example above, the
4444
warning is resolved by adding crate level documentation.
4545

0 commit comments

Comments
 (0)