소스 검색

fix small typo (#1011)

Signed-off-by: Marijn Schouten <hkBst@users.noreply.github.com>
Marijn Schouten 1 년 전
부모
커밋
84cf467095
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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]) }
 }