File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -567,9 +567,10 @@ impl<T> Vec<T> {
567
567
self . buf . try_reserve ( self . len , additional)
568
568
}
569
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`.
570
+ /// Tries to reserve the minimum capacity for exactly `additional`
571
+ /// elements to be inserted in the given `Vec<T>`. After calling
572
+ /// `try_reserve_exact`, capacity will be greater than or equal to
573
+ /// `self.len() + additional` if it returns `Ok(())`.
573
574
/// Does nothing if the capacity is already sufficient.
574
575
///
575
576
/// Note that the allocator may give the collection more space than it
You can’t perform that action at this time.
0 commit comments