Skip to content

Commit 897096e

Browse files
author
bcoopers
committed
---
yaml --- r: 196246 b: refs/heads/tmp c: 2982fe3 h: refs/heads/master v: v3
1 parent 366d55b commit 897096e

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
@@ -32,7 +32,7 @@ refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
3232
refs/heads/beta: 9854143cba679834bc4ef932858cd5303f015a0e
3333
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
3434
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
35-
refs/heads/tmp: 45c10db41f2af5919621ff69f5dc090cc917c1d3
35+
refs/heads/tmp: 2982fe39ad93e29709a2e1414a4228718c8de28a
3636
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3737
refs/tags/homu-tmp: 53a183f0274316596bf9405944d4f0468d8c93e4
3838
refs/heads/gate: 97c84447b65164731087ea82685580cc81424412

branches/tmp/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)