Improve rewind documentation
This commit is contained in:
parent
98c1e3d95b
commit
1fb00335df
1 changed files with 4 additions and 0 deletions
|
@ -556,6 +556,10 @@ where
|
|||
/// therefore, using something that implements [`BufRead`], such as
|
||||
/// [`BufReader`], will be more efficient.
|
||||
///
|
||||
/// Repeated calls to the reader use the same cursor, so for example
|
||||
/// calling `read_to_end` twice on a [`File`] will only return the file's
|
||||
/// contents once. It's recommended to first call `rewind()` in that case.
|
||||
///
|
||||
/// # Examples
|
||||
///
|
||||
/// [`File`]s implement `Read`:
|
||||
|
|
Loading…
Add table
Reference in a new issue