File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
branches/tmp/src/libstd/io Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
34
34
refs/heads/beta: a3b13610c5b93d9ada072471a001a5613df6a960
35
35
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
36
36
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
37
- refs/heads/tmp: 71b9ba1e5b243e52b7c2828e35137eeba378d43f
37
+ refs/heads/tmp: 1c25aecf675d731938951d048a45fb665105b441
38
38
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
39
39
refs/tags/homu-tmp: 28a0b25f424090255966273994748a9f9901059f
40
40
refs/heads/gate: 97c84447b65164731087ea82685580cc81424412
Original file line number Diff line number Diff line change @@ -558,6 +558,12 @@ pub trait BufRead: Read {
558
558
/// This function does not perform any I/O, it simply informs this object
559
559
/// that some amount of its buffer, returned from `fill_buf`, has been
560
560
/// 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`.
561
567
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
562
568
fn consume ( & mut self , amt : usize ) ;
563
569
You can’t perform that action at this time.
0 commit comments