From 82212186c1c3934de96e8eb6294dcfea2887b10e Mon Sep 17 00:00:00 2001 From: Corey Farwell Date: Fri, 24 Apr 2015 18:36:22 -0400 Subject: [PATCH] Fix spelling errors --- src/lib.rs | 2 +- src/punycode.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 3164b12b..90f25423 100644 --- a/src/lib.rs +++ b/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::(); diff --git a/src/punycode.rs b/src/punycode.rs index 38620d1e..158bdb75 100644 --- a/src/punycode.rs +++ b/src/punycode.rs @@ -57,7 +57,7 @@ pub fn decode_to_string(input: &str) -> Option { /// 63 encoded bytes, the DNS limit on domain name labels. pub fn decode(input: &str) -> Option> { // 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) => (