Skip to content

Commit

Permalink
Rollup merge of rust-lang#89467 - tniessen:rustdoc-unecessary, r=jyn514
Browse files Browse the repository at this point in the history
Fix typos in rustdoc/lints

This PR merely fixes a few typos in a recently introduced change :)

Refs: rust-lang#85223
  • Loading branch information
Manishearth committed Oct 4, 2021
2 parents 262f75e + e017e45 commit 58c60a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/doc/rustdoc/src/lints.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ This lint **warns by default**. This lint detects when [intra-doc links] from pu
For example:

```rust
#![warn(rustdoc::private_intra_doc_links)] // note: unecessary - warns by default.
#![warn(rustdoc::private_intra_doc_links)] // note: unnecessary - warns by default.

/// [private]
pub fn public() {}
Expand Down Expand Up @@ -229,7 +229,7 @@ This lint **warns by default**. It detects code block attributes in
documentation examples that have potentially mis-typed values. For example:
```rust
#![warn(rustdoc::invalid_codeblock_attributes)] // note: unecessary - warns by default.
#![warn(rustdoc::invalid_codeblock_attributes)] // note: unnecessary - warns by default.
/// Example.
///
Expand Down Expand Up @@ -348,7 +348,7 @@ This lint is **warn-by-default**. It detects URLs which are not links.
For example:
```rust
#![warn(rustdoc::bare_urls)] // note: unecessary - warns by default.
#![warn(rustdoc::bare_urls)] // note: unnecessary - warns by default.
/// http://example.org
/// [http://example.net]
Expand Down

0 comments on commit 58c60a8

Please sign in to comment.