about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2014-04-08 10:56:48 +0100
committerSimon Sapin <simon.sapin@exyr.org>2014-04-08 10:56:48 +0100
commit7619b781913c7f68d7e8eae6d08d81208d551560 (patch)
tree3c68b2d0d0dc3e9805d09443e45bc16211d4b1b7
parente415c25bcd81dc1f9a5a3d25d9b48ed2d545336b (diff)
downloadrust-7619b781913c7f68d7e8eae6d08d81208d551560.tar.gz
rust-7619b781913c7f68d7e8eae6d08d81208d551560.zip
Update an obsolete comment about conditions
-rw-r--r--src/libstd/io/mem.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/io/mem.rs b/src/libstd/io/mem.rs
index 1cf6ed9a5d9..b6d1b627b70 100644
--- a/src/libstd/io/mem.rs
+++ b/src/libstd/io/mem.rs
@@ -237,7 +237,7 @@ impl<'a> 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 {