about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2024-06-04 21:41:36 +0200
committerGitHub <noreply@github.com>2024-06-04 21:41:36 +0200
commitb6b1a4663176db73cfe47f1b508d7efecb27ee46 (patch)
tree7f5a87a7accb40f6e68e6c3de702c5821d4c0d68
parent610592b5fe5e8382dcda475ef99f7b75cf0f278b (diff)
parent9436fbe00dd4def2efa6651de5f469f8d637fceb (diff)
downloadrust-b6b1a4663176db73cfe47f1b508d7efecb27ee46.tar.gz
rust-b6b1a4663176db73cfe47f1b508d7efecb27ee46.zip
Rollup merge of #125932 - schvv31n:patch-1, r=lqd
Fix typo in the docs of `HashMap::raw_entry_mut`

<!--
If this PR is related to an unstable feature or an otherwise tracked effort,
please link to the relevant tracking issue here. If you don't know of a related
tracking issue or there are none, feel free to ignore this.

This PR will get automatically assigned to a reviewer. In case you would like
a specific user to review your work, you can assign it to them by using

    r​? <reviewer name>
-->
-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.