Skip to content

Commit

Permalink
80 character line limit
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoopers committed Mar 29, 2015
1 parent 45c10db commit 2982fe3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/libstd/io/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,9 @@ fn read_to_end<R: Read + ?Sized>(r: &mut R, buf: &mut Vec<u8>) -> Result<usize>
loop {
if len == buf.len() {
if buf.capacity() == buf.len() {
// reserve() rounds up our request to the nearest power of two, so after the first
// time the capacity is exceeded, we double our capacity at each call to reserve.
// reserve() rounds up our request to the nearest power of two,
// so after the first time the capacity is exceeded, we double
// our capacity at each call to reserve.
buf.reserve(min_cap_bump);
}
let new_area = buf.capacity() - buf.len();
Expand Down

0 comments on commit 2982fe3

Please sign in to comment.