Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions url/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1223,6 +1223,10 @@ impl Url {
///
/// let url = Url::parse("https://example.com/")?;
/// assert_eq!(url.domain(), Some("example.com"));
///
/// let url = Url::parse("https://subdomain.example.com/")?;
/// assert_eq!(url.domain(), Some("subdomain.example.com"));
///
/// # Ok(())
/// # }
/// # run().unwrap();
Expand Down
Loading