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
1783
1783
///
1784
1784
/// However this operation is still unsafe because the resulting `HashMap`
1785
1785
/// 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.
1787
1787
///
1788
1788
/// # Examples
1789
1789
///
Original file line number Diff line number Diff line change @@ -1127,9 +1127,9 @@ where
1127
1127
///
1128
1128
/// # Safety
1129
1129
///
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.
1131
1131
///
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:
1133
1133
/// this operation may panic, loop forever, or any following operation with the set
1134
1134
/// may panic, loop forever or return arbitrary result.
1135
1135
///
@@ -1138,7 +1138,7 @@ where
1138
1138
///
1139
1139
/// However this operation is still unsafe because the resulting `HashSet`
1140
1140
/// 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.
1142
1142
#[ cfg_attr( feature = "inline-more" , inline) ]
1143
1143
pub unsafe fn insert_unique_unchecked ( & mut self , value : T ) -> & T {
1144
1144
self . map . insert_unique_unchecked ( value, ( ) ) . 0
You can’t perform that action at this time.
0 commit comments