about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTim Kurdov <tim.kurdov@gmail.com>2024-06-03 17:35:58 +0100
committerGitHub <noreply@github.com>2024-06-03 17:35:58 +0100
commit9436fbe00dd4def2efa6651de5f469f8d637fceb (patch)
treecd94af64b25fffcdddc643f74ca7d6765cb668a1
parent8768db9912af2dc70651156bb638b09dc2cec630 (diff)
downloadrust-9436fbe00dd4def2efa6651de5f469f8d637fceb.tar.gz
rust-9436fbe00dd4def2efa6651de5f469f8d637fceb.zip
Fix typo in the docs of `HashMap::raw_entry_mut`
-rw-r--r--library/std/src/collections/hash/map.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/collections/hash/map.rs b/library/std/src/collections/hash/map.rs
index 5039f0b6bb2..fcd1c307b5a 100644
--- a/library/std/src/collections/hash/map.rs
+++ b/library/std/src/collections/hash/map.rs
@@ -1218,7 +1218,7 @@ where
     /// will cause the map to produce seemingly random results. Higher-level and
     /// more foolproof APIs like `entry` should be preferred when possible.
     ///
-    /// In particular, the hash used to initialized the raw entry must still be
+    /// In particular, the hash used to initialize the raw entry must still be
     /// consistent with the hash of the key that is ultimately stored in the entry.
     /// This is because implementations of HashMap may need to recompute hashes
     /// when resizing, at which point only the keys are available.