Ver Fonte

fix some typos

Dirk Stolle há 5 anos atrás
pai
commit
004af2fe49
2 ficheiros alterados com 3 adições e 3 exclusões
  1. 1 1
      url/src/lib.rs
  2. 2 2
      url/src/parser.rs

+ 1 - 1
url/src/lib.rs

@@ -2511,7 +2511,7 @@ impl fmt::Display for Url {
     }
 }
 
-/// String converstion.
+/// String conversion.
 impl From<Url> for String {
     fn from(value: Url) -> String {
         value.serialization

+ 2 - 2
url/src/parser.rs

@@ -1563,14 +1563,14 @@ fn is_normalized_windows_drive_letter(segment: &str) -> bool {
     is_windows_drive_letter(segment) && segment.as_bytes()[1] == b':'
 }
 
-/// Wether the scheme is file:, the path has a single segment, and that segment
+/// Whether the scheme is file:, the path has a single segment, and that segment
 /// is a Windows drive letter
 #[inline]
 pub fn is_windows_drive_letter(segment: &str) -> bool {
     segment.len() == 2 && starts_with_windows_drive_letter(segment)
 }
 
-/// Wether path starts with a root slash
+/// Whether path starts with a root slash
 /// and a windows drive letter eg: "/c:" or "/a:/"
 fn path_starts_with_windows_drive_letter(s: &str) -> bool {
     if let Some(c) = s.as_bytes().get(0) {