From 42e235005595f9248f3a9b2cf13f06916e62188b Mon Sep 17 00:00:00 2001 From: Mingun Date: Mon, 13 Mar 2023 19:25:57 +0500 Subject: [PATCH] Fix incorrect name of event in error variant documentation --- src/errors.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/errors.rs b/src/errors.rs index 98abac32..265855ee 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -34,7 +34,8 @@ pub enum Error { UnexpectedBang(u8), /// Text not found, expected `Event::Text` TextNotFound, - /// `Event::XmlDecl` must start with *version* attribute + /// `Event::BytesDecl` must start with *version* attribute. Contains the attribute + /// that was found or `None` if an xml declaration doesn't contain attributes. XmlDeclWithoutVersion(Option), /// Attribute parsing error InvalidAttr(AttrError),