Skip to content

Commit 36a8648

Browse files
authored
Fix spelling of "Known problems section" of interior_mutable_key
1 parent d712d7f commit 36a8648

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

clippy_lints/src/mut_key.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ declare_clippy_lint! {
1212
/// `BtreeSet` rely on either the hash or the order of keys be unchanging,
1313
/// so having types with interior mutability is a bad idea.
1414
///
15-
/// **Known problems:** It's correct to use a struct, that contains interior mutability,
16-
/// as a key; when its `Hash` implementation doesn't access any these interior mutable types.
17-
/// However, this lint is unable to recognise it so cause a false positive.
18-
/// `bytes` ctate is a great example of this.
15+
/// **Known problems:** It's correct to use a struct, that contains interior mutability
16+
/// as a key, when its `Hash` implementation doesn't access any of the interior mutable types.
17+
/// However, this lint is unable to recognize this, so it causes a false positive in theses cases.
18+
/// The `bytes` crate is a great example of this.
1919
///
2020
/// **Example:**
2121
/// ```rust

0 commit comments

Comments
 (0)