Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Amanieu committed Sep 20, 2024
1 parent fb57217 commit e774b7d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1783,7 +1783,7 @@ where
///
/// However this operation is still unsafe because the resulting `HashMap`
/// may be passed to unsafe code which does expect the map to behave
/// correctly, and would could unsoundness as a result.
/// correctly, and would cause unsoundness as a result.
///
/// # Examples
///
Expand Down
6 changes: 3 additions & 3 deletions src/set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1127,9 +1127,9 @@ where
///
/// # Safety
///
/// This operation is safe if a key does not exist in the set.
/// This operation is safe if a value does not exist in the set.
///
/// However, if a key exists in the set already, the behavior is unspecified:
/// However, if a value exists in the set already, the behavior is unspecified:
/// this operation may panic, loop forever, or any following operation with the set
/// may panic, loop forever or return arbitrary result.
///
Expand All @@ -1138,7 +1138,7 @@ where
///
/// However this operation is still unsafe because the resulting `HashSet`
/// may be passed to unsafe code which does expect the set to behave
/// correctly, and would could unsoundness as a result.
/// correctly, and would cause unsoundness as a result.
#[cfg_attr(feature = "inline-more", inline)]
pub unsafe fn insert_unique_unchecked(&mut self, value: T) -> &T {
self.map.insert_unique_unchecked(value, ()).0
Expand Down

0 comments on commit e774b7d

Please sign in to comment.