Skip to content

Commit

Permalink
Add direct check after clear in clear example
Browse files Browse the repository at this point in the history
  • Loading branch information
JSorngard committed Jan 9, 2024
1 parent 5578676 commit 5ab6714
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions common/src/zalgo_string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,7 @@ impl ZalgoString {
/// # use zalgo_codec_common::{Error, ZalgoString};
/// let mut zs = ZalgoString::new("Zalgo")?;
/// zs.clear();
/// assert_eq!(zs, "E");
/// assert!(zs.decoded_is_empty());
/// # Ok::<(), Error>(())
/// ```
Expand Down

0 comments on commit 5ab6714

Please sign in to comment.