Skip to content

Commit c079f3d

Browse files
author
bcoopers
committed
---
yaml --- r: 195543 b: refs/heads/master c: 2982fe3 h: refs/heads/master i: 195541: b1f13d4 195539: f702279 195535: ea653cd v: v3
1 parent ec395be commit c079f3d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 45c10db41f2af5919621ff69f5dc090cc917c1d3
2+
refs/heads/master: 2982fe39ad93e29709a2e1414a4228718c8de28a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: b3317d68910900f135f9f38e43a7a699bc736b4a
55
refs/heads/try: 961e0358e1a5c0faaef606e31e9965742c1643bf

trunk/src/libstd/io/mod.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,9 @@ fn read_to_end<R: Read + ?Sized>(r: &mut R, buf: &mut Vec<u8>) -> Result<usize>
106106
loop {
107107
if len == buf.len() {
108108
if buf.capacity() == buf.len() {
109-
// reserve() rounds up our request to the nearest power of two, so after the first
110-
// time the capacity is exceeded, we double our capacity at each call to reserve.
109+
// reserve() rounds up our request to the nearest power of two,
110+
// so after the first time the capacity is exceeded, we double
111+
// our capacity at each call to reserve.
111112
buf.reserve(min_cap_bump);
112113
}
113114
let new_area = buf.capacity() - buf.len();

0 commit comments

Comments
 (0)