We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ce2e12 commit 968e862Copy full SHA for 968e862
url/src/lib.rs
@@ -444,6 +444,11 @@ impl Url {
444
/// let url = base.join("//eve.com/b")?;
445
/// assert_eq!(url.as_str(), "https://eve.com/b");
446
///
447
+ /// // Input as base url relative special URL
448
+ /// let base = Url::parse("https://alice.com/a")?;
449
+ /// let url = base.join("/v1/meta")?;
450
+ /// assert_eq!(url.as_str(), "https://alice.com/v1/meta");
451
+ ///
452
/// // Input as absolute URL
453
/// let base = Url::parse("https://alice.com/a")?;
454
/// let url = base.join("http://eve.com/b")?;
0 commit comments