Skip to content

Commit

Permalink
Document content field of the BytesText
Browse files Browse the repository at this point in the history
  • Loading branch information
Mingun committed Jul 10, 2022
1 parent dd66f69 commit 60f7087
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/events/mod.rs
Expand Up @@ -683,7 +683,9 @@ impl<'a> From<QName<'a>> 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]>,
}

Expand Down

0 comments on commit 60f7087

Please sign in to comment.