Selaa lähdekoodia

fix small typo (#1011)

Signed-off-by: Marijn Schouten <hkBst@users.noreply.github.com>
Marijn Schouten 1 vuosi sitten
vanhempi
sitoutus
84cf467095
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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]) }
 }