Skip to content

Commit 84cf467

Browse files
authored
fix small typo (#1011)
Signed-off-by: Marijn Schouten <[email protected]>
1 parent 7492360 commit 84cf467

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

percent_encoding/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ pub fn percent_encode_byte(byte: u8) -> &'static str {
9191
";
9292

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

0 commit comments

Comments
 (0)