Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 18d9817

Browse files
committedNov 17, 2024··
BytesCData: Adjust escaped() fn docs
1 parent 28ead21 commit 18d9817

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎src/events/mod.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -710,6 +710,10 @@ impl<'a> BytesCData<'a> {
710710

711711
/// Creates an iterator of `BytesCData` from a string.
712712
///
713+
/// If a string contains `]]>`, it needs to be split into multiple `CDATA`
714+
/// sections, splitting the `]]` and `>` characters. This iterator yields
715+
/// a `BytesCData` instance for each of those sections.
716+
///
713717
/// # Examples
714718
///
715719
/// ```
@@ -874,10 +878,6 @@ impl<'a> arbitrary::Arbitrary<'a> for BytesCData<'a> {
874878
/// Iterator over `CDATA` sections in a string.
875879
///
876880
/// This iterator is created by the [`BytesCData::escaped`] method.
877-
///
878-
/// If a string contains `]]>`, it needs to be split into multiple `CDATA`
879-
/// sections, splitting the `]]` and `>` characters. This iterator yields
880-
/// each of those sections.
881881
#[derive(Clone, Debug)]
882882
pub struct CDataIterator<'a> {
883883
content: &'a str,

0 commit comments

Comments
 (0)
Please sign in to comment.