Skip to content

Commit 8c3e622

Browse files
committed
---
yaml --- r: 194333 b: refs/heads/tmp c: 1c25aec h: refs/heads/master i: 194331: deba24e v: v3
1 parent 7bb9cb7 commit 8c3e622

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
3434
refs/heads/beta: a3b13610c5b93d9ada072471a001a5613df6a960
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
3636
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
37-
refs/heads/tmp: 71b9ba1e5b243e52b7c2828e35137eeba378d43f
37+
refs/heads/tmp: 1c25aecf675d731938951d048a45fb665105b441
3838
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3939
refs/tags/homu-tmp: 28a0b25f424090255966273994748a9f9901059f
4040
refs/heads/gate: 97c84447b65164731087ea82685580cc81424412

branches/tmp/src/libstd/io/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -558,6 +558,12 @@ pub trait BufRead: Read {
558558
/// This function does not perform any I/O, it simply informs this object
559559
/// that some amount of its buffer, returned from `fill_buf`, has been
560560
/// consumed and should no longer be returned.
561+
///
562+
/// This function is used to tell the buffer how many bytes you've consumed
563+
/// from the return value of `fill_buf`, and so may do odd things if
564+
/// `fill_buf` isn't called before calling this.
565+
///
566+
/// The `amt` must be `<=` the number of bytes in the buffer returned by `fill_buf`.
561567
#[stable(feature = "rust1", since = "1.0.0")]
562568
fn consume(&mut self, amt: usize);
563569

0 commit comments

Comments
 (0)