File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -1264,15 +1264,13 @@ pub trait BufRead: Read {
1264
1264
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1265
1265
fn consume ( & mut self , amt : usize ) ;
1266
1266
1267
- /// Read all bytes into `buf` until the delimiter `byte` is reached.
1267
+ /// Read all bytes into `buf` until the delimiter `byte` or EOF is reached.
1268
1268
///
1269
1269
/// This function will read bytes from the underlying stream until the
1270
1270
/// delimiter or EOF is found. Once found, all bytes up to, and including,
1271
1271
/// the delimiter (if found) will be appended to `buf`.
1272
1272
///
1273
- /// If this reader is currently at EOF then this function will not modify
1274
- /// `buf` and will return `Ok(n)` where `n` is the number of bytes which
1275
- /// were read.
1273
+ /// If successful, this function will return the total number of bytes read.
1276
1274
///
1277
1275
/// # Errors
1278
1276
///
@@ -1315,9 +1313,7 @@ pub trait BufRead: Read {
1315
1313
/// up to, and including, the delimiter (if found) will be appended to
1316
1314
/// `buf`.
1317
1315
///
1318
- /// If this reader is currently at EOF then this function will not modify
1319
- /// `buf` and will return `Ok(n)` where `n` is the number of bytes which
1320
- /// were read.
1316
+ /// If successful, this function will return the total number of bytes read.
1321
1317
///
1322
1318
/// # Errors
1323
1319
///
You can’t perform that action at this time.
0 commit comments