diff options
Diffstat (limited to 'src/util/smallcharset.rs')
-rw-r--r-- | src/util/smallcharset.rs | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/util/smallcharset.rs b/src/util/smallcharset.rs index 957dad7..aeeb189 100644 --- a/src/util/smallcharset.rs +++ b/src/util/smallcharset.rs @@ -41,20 +41,6 @@ impl SmallCharSet { /// Count the number of bytes of characters at the beginning of `buf` which are not in the set. /// /// This functionality is used in [`BufferQueue::pop_except_from`]. - /// - /// # Examples - /// - /// ``` - /// # #[macro_use] extern crate markup5ever; - /// # fn main() { - /// let set = small_char_set!(48 49 50); // '0' '1' '2' - /// // `test` is 4 chars, ๐ is 4 chars, then we meet a character in the set - /// let test_str = "test๐01232afd"; - /// assert_eq!(set.nonmember_prefix_len(test_str), 8); - /// # } - /// ``` - /// - /// [`BufferQueue::pop_except_from`]: buffer_queue/struct.BufferQueue.html#method.pop_except_from pub fn nonmember_prefix_len(&self, buf: &str) -> u32 { let mut n = 0; for b in buf.bytes() { |