From 19b6cbb28e5f5bf0daa2f7d30002dbca88d44e4f Mon Sep 17 00:00:00 2001 From: Bastian Kersting Date: Wed, 2 Oct 2024 14:31:56 +0000 Subject: [PATCH] Update outdated comment on Reader::next --- src/reader.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/reader.rs b/src/reader.rs index 5c4a9abd..57ac5957 100644 --- a/src/reader.rs +++ b/src/reader.rs @@ -46,8 +46,8 @@ impl EventReader { /// 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 { self.parser.next(&mut self.source)