about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbcoopers <coopersmithbrian@gmail.com>2015-03-29 19:23:46 -0400
committerbcoopers <coopersmithbrian@gmail.com>2015-03-29 19:23:46 -0400
commit2982fe39ad93e29709a2e1414a4228718c8de28a (patch)
tree238dd9ba30b63f6202849ada042d4da3c118ea77
parent45c10db41f2af5919621ff69f5dc090cc917c1d3 (diff)
downloadrust-2982fe39ad93e29709a2e1414a4228718c8de28a.tar.gz
rust-2982fe39ad93e29709a2e1414a4228718c8de28a.zip
80 character line limit
-rw-r--r--src/libstd/io/mod.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libstd/io/mod.rs b/src/libstd/io/mod.rs
index 3de9a068926..bc3791b99d0 100644
--- a/src/libstd/io/mod.rs
+++ b/src/libstd/io/mod.rs
@@ -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();