File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -574,6 +574,10 @@ impl<T> Vec<T> {
574
574
/// It will drop down as close as possible to the length but the allocator
575
575
/// may still inform the vector that there is space for a few more elements.
576
576
///
577
+ /// Note: `shrink_to_fit` is a non-binding request. Whether the `Vec` size
578
+ /// will be shrunk at all, and if so by how much depends on the particular
579
+ /// allocator being used.
580
+ ///
577
581
/// # Examples
578
582
///
579
583
/// ```
@@ -598,6 +602,10 @@ impl<T> Vec<T> {
598
602
/// Panics if the current capacity is smaller than the supplied
599
603
/// minimum capacity.
600
604
///
605
+ /// Note: `shrink_to` is a non-binding request. Whether the `Vec` size
606
+ /// will be shrunk at all, and if so by how much depends on the particular
607
+ /// allocator being used.
608
+ ///
601
609
/// # Examples
602
610
///
603
611
/// ```
You can’t perform that action at this time.
0 commit comments