Skip to content

Commit

Permalink
fix small typo (#1011)
Browse files Browse the repository at this point in the history
Signed-off-by: Marijn Schouten <[email protected]>
  • Loading branch information
hkBst authored Dec 23, 2024
1 parent 7492360 commit 84cf467
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion percent_encoding/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ pub fn percent_encode_byte(byte: u8) -> &'static str {
";

let index = usize::from(byte) * 3;
// SAFETY: ENC_TABLE is ascii-only, so any subset if it should be
// SAFETY: ENC_TABLE is ascii-only, so any subset of it should be
// ascii-only too, which is valid utf8.
unsafe { str::from_utf8_unchecked(&ENC_TABLE[index..index + 3]) }
}
Expand Down

0 comments on commit 84cf467

Please sign in to comment.