Skip to content

Commit 7619b78

Browse files
committed
Update an obsolete comment about conditions
1 parent e415c25 commit 7619b78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/io/mem.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ impl<'a> BufWriter<'a> {
237237

238238
impl<'a> Writer for BufWriter<'a> {
239239
fn write(&mut self, buf: &[u8]) -> IoResult<()> {
240-
// raises a condition if the entire write does not fit in the buffer
240+
// return an error if the entire write does not fit in the buffer
241241
let max_size = self.buf.len();
242242
if self.pos >= max_size || (self.pos + buf.len()) > max_size {
243243
return Err(IoError {

0 commit comments

Comments
 (0)