Просмотр исходного кода

resynchronize docs

phrase adapted from url::Host::Domain enum variant
Johann150 5 лет назад
Родитель
Сommit
0ed8efdff0
1 измененных файлов с 2 добавлено и 1 удалено
  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.
-    /// 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
     /// don’t have a host.