We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 02f5121 + 7619b78 commit 8801d89Copy full SHA for 8801d89
src/libstd/io/mem.rs
@@ -237,7 +237,7 @@ impl<'a> BufWriter<'a> {
237
238
impl<'a> Writer for BufWriter<'a> {
239
fn write(&mut self, buf: &[u8]) -> IoResult<()> {
240
- // 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
241
let max_size = self.buf.len();
242
if self.pos >= max_size || (self.pos + buf.len()) > max_size {
243
return Err(IoError {
0 commit comments