From b02146a370e8e07186d4bd2c264699300ca925df Mon Sep 17 00:00:00 2001 From: Ariel Davis Date: Tue, 31 May 2022 22:08:14 -0700 Subject: Tweak insert docs --- library/std/src/collections/hash/set.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'library/std') diff --git a/library/std/src/collections/hash/set.rs b/library/std/src/collections/hash/set.rs index da0572047ec..19428fe9a23 100644 --- a/library/std/src/collections/hash/set.rs +++ b/library/std/src/collections/hash/set.rs @@ -858,9 +858,10 @@ where /// Adds a value to the set. /// - /// If the set did not have this value present, `true` is returned. + /// Returns whether the value was newly inserted. That is: /// - /// If the set did have this value present, `false` is returned. + /// - If the set did not previously contain this value, `true` is returned. + /// - If the set already contained this value, `false` is returned. /// /// # Examples /// -- cgit 1.4.1-3-g733a5