We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3bbc443 + 86e30b6 commit 00730fdCopy full SHA for 00730fd
library/alloc/src/vec.rs
@@ -567,9 +567,10 @@ impl<T> Vec<T> {
567
self.buf.try_reserve(self.len, additional)
568
}
569
570
- /// Tries to reserves the minimum capacity for exactly `additional` more elements to
571
- /// be inserted in the given `Vec<T>`. After calling `try_reserve_exact`,
572
- /// capacity will be greater than or equal to `self.len() + additional`.
+ /// Tries to reserve the minimum capacity for exactly `additional`
+ /// elements to be inserted in the given `Vec<T>`. After calling
+ /// `try_reserve_exact`, capacity will be greater than or equal to
573
+ /// `self.len() + additional` if it returns `Ok(())`.
574
/// Does nothing if the capacity is already sufficient.
575
///
576
/// Note that the allocator may give the collection more space than it
0 commit comments