Skip to content

Commit 2982fe3

Browse files
author
bcoopers
committed
80 character line limit
1 parent 45c10db commit 2982fe3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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)