@@ -6,7 +6,7 @@ use core::hash::{BuildHasher, Hash};
66use core:: mem;
77
88impl < K , V , S , A : Allocator > HashMap < K , V , S , A > {
9- /// Creates a raw entry builder for the HashMap.
9+ /// Creates a raw entry builder for the ` HashMap` .
1010 ///
1111 /// Raw entries provide the lowest level of control for searching and
1212 /// manipulating a map. They must be manually initialized with a hash and
@@ -21,13 +21,13 @@ impl<K, V, S, A: Allocator> HashMap<K, V, S, A> {
2121 /// * Using custom comparison logic without newtype wrappers
2222 ///
2323 /// Because raw entries provide much more low-level control, it's much easier
24- /// to put the HashMap into an inconsistent state which, while memory-safe,
24+ /// to put the ` HashMap` into an inconsistent state which, while memory-safe,
2525 /// will cause the map to produce seemingly random results. Higher-level and
2626 /// more foolproof APIs like `entry` should be preferred when possible.
2727 ///
2828 /// In particular, the hash used to initialized the raw entry must still be
2929 /// consistent with the hash of the key that is ultimately stored in the entry.
30- /// This is because implementations of HashMap may need to recompute hashes
30+ /// This is because implementations of ` HashMap` may need to recompute hashes
3131 /// when resizing, at which point only the keys are available.
3232 ///
3333 /// Raw entries give mutable access to the keys. This must not be used
@@ -108,7 +108,7 @@ impl<K, V, S, A: Allocator> HashMap<K, V, S, A> {
108108 RawEntryBuilderMut { map : self }
109109 }
110110
111- /// Creates a raw immutable entry builder for the HashMap.
111+ /// Creates a raw immutable entry builder for the ` HashMap` .
112112 ///
113113 /// Raw entries provide the lowest level of control for searching and
114114 /// manipulating a map. They must be manually initialized with a hash and
@@ -708,7 +708,7 @@ impl<'a, K, V, S, A: Allocator> RawEntryBuilder<'a, K, V, S, A> {
708708}
709709
710710impl < ' a , K , V , S , A : Allocator > RawEntryMut < ' a , K , V , S , A > {
711- /// Sets the value of the entry, and returns a RawOccupiedEntryMut.
711+ /// Sets the value of the entry, and returns a ` RawOccupiedEntryMut` .
712712 ///
713713 /// # Examples
714714 ///
@@ -1005,7 +1005,7 @@ impl<'a, K, V, S, A: Allocator> RawOccupiedEntryMut<'a, K, V, S, A> {
10051005 unsafe { & self . elem . as_ref ( ) . 1 }
10061006 }
10071007
1008- /// Converts the OccupiedEntry into a mutable reference to the value in the entry
1008+ /// Converts the ` OccupiedEntry` into a mutable reference to the value in the entry
10091009 /// with a lifetime bound to the map itself.
10101010 ///
10111011 /// # Examples
@@ -1109,7 +1109,7 @@ impl<'a, K, V, S, A: Allocator> RawOccupiedEntryMut<'a, K, V, S, A> {
11091109 }
11101110 }
11111111
1112- /// Converts the OccupiedEntry into a mutable reference to the key and value in the entry
1112+ /// Converts the ` OccupiedEntry` into a mutable reference to the key and value in the entry
11131113 /// with a lifetime bound to the map itself.
11141114 ///
11151115 /// # Examples
@@ -1301,7 +1301,7 @@ impl<'a, K, V, S, A: Allocator> RawOccupiedEntryMut<'a, K, V, S, A> {
13011301}
13021302
13031303impl < ' a , K , V , S , A : Allocator > RawVacantEntryMut < ' a , K , V , S , A > {
1304- /// Sets the value of the entry with the VacantEntry's key,
1304+ /// Sets the value of the entry with the ` VacantEntry` 's key,
13051305 /// and returns a mutable reference to it.
13061306 ///
13071307 /// # Examples
@@ -1328,7 +1328,7 @@ impl<'a, K, V, S, A: Allocator> RawVacantEntryMut<'a, K, V, S, A> {
13281328 self . insert_hashed_nocheck ( hash, key, value)
13291329 }
13301330
1331- /// Sets the value of the entry with the VacantEntry's key,
1331+ /// Sets the value of the entry with the ` VacantEntry` 's key,
13321332 /// and returns a mutable reference to it.
13331333 ///
13341334 /// # Examples
0 commit comments