File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1783,7 +1783,7 @@ where
17831783 ///
17841784 /// However this operation is still unsafe because the resulting `HashMap`
17851785 /// may be passed to unsafe code which does expect the map to behave
1786- /// correctly, and would could unsoundness as a result.
1786+ /// correctly, and would cause unsoundness as a result.
17871787 ///
17881788 /// # Examples
17891789 ///
Original file line number Diff line number Diff line change @@ -1127,9 +1127,9 @@ where
11271127 ///
11281128 /// # Safety
11291129 ///
1130- /// This operation is safe if a key does not exist in the set.
1130+ /// This operation is safe if a value does not exist in the set.
11311131 ///
1132- /// However, if a key exists in the set already, the behavior is unspecified:
1132+ /// However, if a value exists in the set already, the behavior is unspecified:
11331133 /// this operation may panic, loop forever, or any following operation with the set
11341134 /// may panic, loop forever or return arbitrary result.
11351135 ///
@@ -1138,7 +1138,7 @@ where
11381138 ///
11391139 /// However this operation is still unsafe because the resulting `HashSet`
11401140 /// may be passed to unsafe code which does expect the set to behave
1141- /// correctly, and would could unsoundness as a result.
1141+ /// correctly, and would cause unsoundness as a result.
11421142 #[ cfg_attr( feature = "inline-more" , inline) ]
11431143 pub unsafe fn insert_unique_unchecked ( & mut self , value : T ) -> & T {
11441144 self . map . insert_unique_unchecked ( value, ( ) ) . 0
You can’t perform that action at this time.
0 commit comments