Skip to content

Commit

Permalink
Update an obsolete comment about conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonSapin committed Apr 8, 2014
1 parent e415c25 commit 7619b78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstd/io/mem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

13 comments on commit 7619b78

@bors
Copy link
Contributor

@bors bors commented on 7619b78 Apr 8, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from cmr
at SimonSapin@7619b78

@bors
Copy link
Contributor

@bors bors commented on 7619b78 Apr 8, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging SimonSapin/rust/patch-8 = 7619b78 into auto

@bors
Copy link
Contributor

@bors bors commented on 7619b78 Apr 8, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SimonSapin/rust/patch-8 = 7619b78 merged ok, testing candidate = 8bc1a377

@bors
Copy link
Contributor

@bors bors commented on 7619b78 Apr 8, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on 7619b78 Apr 8, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from cmr
at SimonSapin@7619b78

@bors
Copy link
Contributor

@bors bors commented on 7619b78 Apr 8, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging SimonSapin/rust/patch-8 = 7619b78 into auto

@bors
Copy link
Contributor

@bors bors commented on 7619b78 Apr 8, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SimonSapin/rust/patch-8 = 7619b78 merged ok, testing candidate = c7c44c5c

@bors
Copy link
Contributor

@bors bors commented on 7619b78 Apr 8, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from cmr
at SimonSapin@7619b78

@bors
Copy link
Contributor

@bors bors commented on 7619b78 Apr 8, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging SimonSapin/rust/patch-8 = 7619b78 into auto

@bors
Copy link
Contributor

@bors bors commented on 7619b78 Apr 8, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SimonSapin/rust/patch-8 = 7619b78 merged ok, testing candidate = 8801d89

@bors
Copy link
Contributor

@bors bors commented on 7619b78 Apr 8, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on 7619b78 Apr 8, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = 8801d89

Please sign in to comment.