From 33a3b26f56c3c2d6f0e110f60163e8c1add582ba Mon Sep 17 00:00:00 2001 From: YOSHIOKA Takuma Date: Thu, 28 Mar 2019 21:12:47 +0900 Subject: [PATCH] Refer new `Seek::stream_pos()` in the comment `reader.stream_pos()` is equivalent to `reader.seek(SeekFrom::Current(0))`. See . --- src/pull_parser/reader.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pull_parser/reader.rs b/src/pull_parser/reader.rs index 6773875..44ec8f7 100644 --- a/src/pull_parser/reader.rs +++ b/src/pull_parser/reader.rs @@ -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. ///