File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
branches/snap-stage3/src/libcollections Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: 065caf34f5ff29e04605f95d9c5d511af219439a
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
- refs/heads/snap-stage3: fe6847a25ba6ebad42fefde7e3a2e6aa0794b676
4
+ refs/heads/snap-stage3: a446b68380f1f223b03baebb71d591d42c98dbbd
5
5
refs/heads/try: 0ee4d8b0b112c608646fa75463ab4dc59132efd9
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
Original file line number Diff line number Diff line change @@ -636,7 +636,9 @@ impl<T> Vec<T> {
636
636
}
637
637
}
638
638
639
- /// Shrinks the capacity of the vector as much as possible.
639
+ /// Shrinks the capacity of the vector as much as possible. It will drop
640
+ /// down as close as possible to the length but the allocator may still
641
+ /// inform the vector that there is space for a few more elements.
640
642
///
641
643
/// # Example
642
644
///
@@ -645,7 +647,7 @@ impl<T> Vec<T> {
645
647
/// vec.push_all([1, 2, 3]);
646
648
/// assert_eq!(vec.capacity(), 10);
647
649
/// vec.shrink_to_fit();
648
- /// assert_eq !(vec.capacity(), 3);
650
+ /// assert !(vec.capacity() >= 3);
649
651
/// ```
650
652
#[ stable]
651
653
pub fn shrink_to_fit ( & mut self ) {
You can’t perform that action at this time.
0 commit comments