Fix typo in the docs of HashMap::raw_entry_mut · model-checking/verify-rust-std@82e24ad (original) (raw)

Original file line number Diff line number Diff line change
@@ -1218,7 +1218,7 @@ where
1218 1218 /// will cause the map to produce seemingly random results. Higher-level and
1219 1219 /// more foolproof APIs like `entry` should be preferred when possible.
1220 1220 ///
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
1222 1222 /// consistent with the hash of the key that is ultimately stored in the entry.
1223 1223 /// This is because implementations of HashMap may need to recompute hashes
1224 1224 /// when resizing, at which point only the keys are available.