mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-08 09:38:26 +03:00
Fix spelling of "Known problems section" of interior_mutable_key
This commit is contained in:
@@ -12,10 +12,10 @@
|
||||
/// `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
|
||||
|
||||
Reference in New Issue
Block a user