Skip to content

Commit 82e24ad

Browse files
Fix typo in the docs of HashMap::raw_entry_mut
1 parent 6ef46b3 commit 82e24ad

File tree

1 file changed

+1
-1
lines changed
  • std/src/collections/hash

1 file changed

+1
-1
lines changed

std/src/collections/hash/map.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1218,7 +1218,7 @@ where
12181218
/// will cause the map to produce seemingly random results. Higher-level and
12191219
/// more foolproof APIs like `entry` should be preferred when possible.
12201220
///
1221-
/// In particular, the hash used to initialized the raw entry must still be
1221+
/// In particular, the hash used to initialize the raw entry must still be
12221222
/// consistent with the hash of the key that is ultimately stored in the entry.
12231223
/// This is because implementations of HashMap may need to recompute hashes
12241224
/// when resizing, at which point only the keys are available.

0 commit comments

Comments
 (0)