diff --git a/src/events/mod.rs b/src/events/mod.rs index e25bf1c4..5516c1dd 100644 --- a/src/events/mod.rs +++ b/src/events/mod.rs @@ -683,7 +683,9 @@ impl<'a> From> for BytesEnd<'a> { /// in escaped form. Internally data is stored in escaped form #[derive(Clone, Eq, PartialEq)] pub struct BytesText<'a> { - // Invariant: The content is always escaped. + /// Escaped then encoded content of the event. Content is encoded in the XML + /// document encoding when event comes from the reader and should be in the + /// document encoding when event passed to the writer content: Cow<'a, [u8]>, }