Procházet zdrojové kódy

Merge pull request #98 from frewsxcv/spelling

Fix spelling errors
Simon Sapin před 11 roky
rodič
revize
771d5ff32b
2 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 1 1
      src/lib.rs
  2. 1 1
      src/punycode.rs

+ 1 - 1
src/lib.rs

@@ -526,7 +526,7 @@ impl Url {
     /// The return type (when `Ok()`) is generic and can be either `std::path::posix::Path`
     /// or `std::path::windows::Path`.
     /// (Use `std::path::Path` to pick one of them depending on the local system.)
-    /// If the compiler can not infer the desired type from context, you may have to specifiy it:
+    /// If the compiler can not infer the desired type from context, you may have to specify it:
     ///
     /// ```ignore
     /// let path = url.to_file_path::<std::path::posix::Path>();

+ 1 - 1
src/punycode.rs

@@ -57,7 +57,7 @@ pub fn decode_to_string(input: &str) -> Option<String> {
 /// 63 encoded bytes, the DNS limit on domain name labels.
 pub fn decode(input: &str) -> Option<Vec<char>> {
     // Handle "basic" (ASCII) code points.
-    // They are encoded as-is befor the last delimiter, if any.
+    // They are encoded as-is before the last delimiter, if any.
     let (mut output, input) = match input.rfind(DELIMITER) {
         None => (Vec::new(), input),
         Some(position) => (