Browse Source

fix small typo (#1011)

Signed-off-by: Marijn Schouten <hkBst@users.noreply.github.com>
Marijn Schouten 1 năm trước cách đây
mục cha
commit
84cf467095
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      percent_encoding/src/lib.rs

+ 1 - 1
percent_encoding/src/lib.rs

@@ -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]) }
 }