Update an obsolete comment about conditions

This commit is contained in:
Simon Sapin 2014-04-08 10:56:48 +01:00
parent e415c25bcd
commit 7619b78191

View File

@ -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 {