We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7492360 commit 84cf467Copy full SHA for 84cf467
percent_encoding/src/lib.rs
@@ -91,7 +91,7 @@ pub fn percent_encode_byte(byte: u8) -> &'static str {
91
";
92
93
let index = usize::from(byte) * 3;
94
- // 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
95
// ascii-only too, which is valid utf8.
96
unsafe { str::from_utf8_unchecked(&ENC_TABLE[index..index + 3]) }
97
}
0 commit comments