Skip to content

Commit

Permalink
Update outdated comment on Reader::next
Browse files Browse the repository at this point in the history
  • Loading branch information
1c3t3a authored and kornelski committed Oct 2, 2024
1 parent 6331c3a commit 19b6cbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ impl<R: Read> EventReader<R> {

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

0 comments on commit 19b6cbb

Please sign in to comment.