From 7619b781913c7f68d7e8eae6d08d81208d551560 Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Tue, 8 Apr 2014 10:56:48 +0100 Subject: [PATCH] Update an obsolete comment about conditions --- src/libstd/io/mem.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstd/io/mem.rs b/src/libstd/io/mem.rs index 1cf6ed9a5d97d..b6d1b627b7084 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 {