Skip to content

Commit

Permalink
Merge pull request #599 from BenjaminRi/master
Browse files Browse the repository at this point in the history
Rename the erroneously called `SLASH_ESCAPE` to `SINGLE_QUOTE_ESCAPE`
  • Loading branch information
raphlinus authored Jul 3, 2022
2 parents 3d50a20 + 0efa14c commit d03cff1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/escape.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ static HREF_SAFE: [u8; 128] = [

static HEX_CHARS: &[u8] = b"0123456789ABCDEF";
static AMP_ESCAPE: &str = "&";
static SLASH_ESCAPE: &str = "'";
static SINGLE_QUOTE_ESCAPE: &str = "'";

/// This wrapper exists because we can't have both a blanket implementation
/// for all types implementing `Write` and types of the for `&mut W` where
Expand Down Expand Up @@ -120,7 +120,7 @@ where
w.write_str(AMP_ESCAPE)?;
}
b'\'' => {
w.write_str(SLASH_ESCAPE)?;
w.write_str(SINGLE_QUOTE_ESCAPE)?;
}
_ => {
let mut buf = [0u8; 3];
Expand Down

0 comments on commit d03cff1

Please sign in to comment.