Explorar el Código

resynchronize docs

phrase adapted from url::Host::Domain enum variant
Johann150 hace 5 años
padre
commit
0ed8efdff0
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      url/src/lib.rs

+ 2 - 1
url/src/lib.rs

@@ -842,7 +842,8 @@ impl Url {
     }
     }
 
 
     /// Return the parsed representation of the host for this URL.
     /// Return the parsed representation of the host for this URL.
-    /// Non-ASCII domain labels are punycode-encoded per IDNA.
+    /// Non-ASCII domain labels are punycode-encoded per IDNA if this is the host
+    /// of a special URL, or percent encoded for non-special URLs.
     ///
     ///
     /// Cannot-be-a-base URLs (typical of `data:` and `mailto:`) and some `file:` URLs
     /// Cannot-be-a-base URLs (typical of `data:` and `mailto:`) and some `file:` URLs
     /// don’t have a host.
     /// don’t have a host.