Skip to content

Commit

Permalink
Fix spelling of "Known problems section" of interior_mutable_key
Browse files Browse the repository at this point in the history
  • Loading branch information
flip1995 authored Sep 10, 2020
1 parent d712d7f commit 36a8648
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions clippy_lints/src/mut_key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ declare_clippy_lint! {
/// `BtreeSet` rely on either the hash or the order of keys be unchanging,
/// so having types with interior mutability is a bad idea.
///
/// **Known problems:** It's correct to use a struct, that contains interior mutability,
/// as a key; when its `Hash` implementation doesn't access any these interior mutable types.
/// However, this lint is unable to recognise it so cause a false positive.
/// `bytes` ctate is a great example of this.
/// **Known problems:** It's correct to use a struct, that contains interior mutability
/// as a key, when its `Hash` implementation doesn't access any of the interior mutable types.
/// However, this lint is unable to recognize this, so it causes a false positive in theses cases.
/// The `bytes` crate is a great example of this.
///
/// **Example:**
/// ```rust
Expand Down

0 comments on commit 36a8648

Please sign in to comment.