Skip to content

Commit

Permalink
Refer new Seek::stream_pos() in the comment
Browse files Browse the repository at this point in the history
`reader.stream_pos()` is equivalent to
`reader.seek(SeekFrom::Current(0))`.

See <rust-lang/rust#59359>.
  • Loading branch information
lo48576 committed Apr 9, 2019
1 parent 2beacd4 commit 33a3b26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pull_parser/reader.rs
Expand Up @@ -35,7 +35,7 @@ pub trait ParserSource: Sized + io::Read {
/// as possible.
///
/// Reader types with [`std::io::Seek`] can implement this as
/// `self.seek(SeekFrom::Current(0)).unwrap()`, but this is fallible and
/// `self.stream_position().unwrap()`, but this is fallible and
/// can be inefficient.
/// Use of [`PositionCacheReader`] is reccomended.
///
Expand Down

0 comments on commit 33a3b26

Please sign in to comment.