Skip to content

Commit 19b6cbb

Browse files
1c3t3akornelski
authored andcommitted
Update outdated comment on Reader::next
1 parent 6331c3a commit 19b6cbb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/reader.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ impl<R: Read> EventReader<R> {
4646

4747
/// Pulls and returns next XML event from the stream.
4848
///
49-
/// If returned event is `XmlEvent::Error` or `XmlEvent::EndDocument`, then
50-
/// further calls to this method will return this event again.
49+
/// If this returns [Err] or [XmlEvent::EndDocument] then further calls to
50+
/// this method will return this event again.
5151
#[inline]
5252
pub fn next(&mut self) -> Result<XmlEvent> {
5353
self.parser.next(&mut self.source)

0 commit comments

Comments
 (0)