Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doc fix for HashSet::insert(). #37

Merged
merged 1 commit into from
Dec 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions src/set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -408,12 +408,11 @@ where

/// Inserts a value into the set.
///
/// If the set did not have this key present, [`None`] is returned.
/// If the set did not have this key present, `true` is returned.
///
/// If the set did have this key present, the value is updated, and the old
/// value is returned. The key is not updated, though; this matters for
/// types that can be `==` without being identical. See the [standard library
/// documentation] for details.
/// If the set did have this key present, `false` is returned and the old
/// value is not updated. This matters for types that can be `==` without
/// being identical. See the [standard library documentation] for details.
///
/// [standard library documentation]: https://doc.rust-lang.org/std/collections/index.html#insert-and-complex-keys
///
Expand Down