]> git.lizzy.rs Git - rust.git/blobdiff - library/std/src/collections/hash/set.rs
Auto merge of #102458 - JohnTitor:stabilize-instruction-set, r=oli-obk
[rust.git] / library / std / src / collections / hash / set.rs
index c36eeae3388db4a52837e3042e883e5ed3ece6be..cee884145c7116fd3f695389b94a4ad3501475ca 100644 (file)
@@ -462,7 +462,7 @@ pub fn reserve(&mut self, additional: usize) {
 
     /// Tries to reserve capacity for at least `additional` more elements to be inserted
     /// in the `HashSet`. The collection may reserve more space to speculatively
-    /// avoid frequent reallocations. After calling `reserve`,
+    /// avoid frequent reallocations. After calling `try_reserve`,
     /// capacity will be greater than or equal to `self.len() + additional` if
     /// it returns `Ok(())`.
     /// Does nothing if capacity is already sufficient.