Skip to content

Commit 0ed8efd

Browse files
committed
resynchronize docs
phrase adapted from url::Host::Domain enum variant
1 parent 8bede54 commit 0ed8efd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

url/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -842,7 +842,8 @@ impl Url {
842842
}
843843

844844
/// Return the parsed representation of the host for this URL.
845-
/// Non-ASCII domain labels are punycode-encoded per IDNA.
845+
/// Non-ASCII domain labels are punycode-encoded per IDNA if this is the host
846+
/// of a special URL, or percent encoded for non-special URLs.
846847
///
847848
/// Cannot-be-a-base URLs (typical of `data:` and `mailto:`) and some `file:` URLs
848849
/// don’t have a host.

0 commit comments

Comments
 (0)