Skip to content

Commit

Permalink
BytesCData: Adjust escaped() fn docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Turbo87 committed Nov 17, 2024
1 parent 28ead21 commit 18d9817
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/events/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -710,6 +710,10 @@ impl<'a> BytesCData<'a> {

/// Creates an iterator of `BytesCData` from a string.
///
/// If a string contains `]]>`, it needs to be split into multiple `CDATA`
/// sections, splitting the `]]` and `>` characters. This iterator yields
/// a `BytesCData` instance for each of those sections.
///
/// # Examples
///
/// ```
Expand Down Expand Up @@ -874,10 +878,6 @@ impl<'a> arbitrary::Arbitrary<'a> for BytesCData<'a> {
/// Iterator over `CDATA` sections in a string.
///
/// This iterator is created by the [`BytesCData::escaped`] method.
///
/// If a string contains `]]>`, it needs to be split into multiple `CDATA`
/// sections, splitting the `]]` and `>` characters. This iterator yields
/// each of those sections.
#[derive(Clone, Debug)]
pub struct CDataIterator<'a> {
content: &'a str,
Expand Down

0 comments on commit 18d9817

Please sign in to comment.