]> git.lizzy.rs Git - rust.git/commitdiff
Update an obsolete comment about conditions
authorSimon Sapin <simon.sapin@exyr.org>
Tue, 8 Apr 2014 09:56:48 +0000 (10:56 +0100)
committerSimon Sapin <simon.sapin@exyr.org>
Tue, 8 Apr 2014 09:56:48 +0000 (10:56 +0100)
src/libstd/io/mem.rs

index 1cf6ed9a5d97dd9d4d6b7652451f803d24187ff6..b6d1b627b70843efe84880ae6d0ef5ca1b83bb06 100644 (file)
@@ -237,7 +237,7 @@ pub fn new<'a>(buf: &'a mut [u8]) -> BufWriter<'a> {
 
 impl<'a> Writer for BufWriter<'a> {
     fn write(&mut self, buf: &[u8]) -> IoResult<()> {
-        // raises a condition if the entire write does not fit in the buffer
+        // return an error if the entire write does not fit in the buffer
         let max_size = self.buf.len();
         if self.pos >= max_size || (self.pos + buf.len()) > max_size {
             return Err(IoError {