File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -267,12 +267,12 @@ impl Url {
267267 /// ```rust
268268 /// use url::Url;
269269 ///
270- /// let base = Url::parse("https://example.net/a/b.html").unwrap() ;
271- /// let url = base.join("c.png").unwrap() ;
270+ /// let base = Url::parse("https://example.net/a/b.html")? ;
271+ /// let url = base.join("c.png")? ;
272272 /// assert_eq!(url.as_str(), "https://example.net/a/c.png"); // Not /a/b.html/c.png
273273 ///
274- /// let base = Url::parse("https://example.net/a/b/").unwrap() ;
275- /// let url = base.join("c.png").unwrap() ;
274+ /// let base = Url::parse("https://example.net/a/b/")? ;
275+ /// let url = base.join("c.png")? ;
276276 /// assert_eq!(url.as_str(), "https://example.net/a/b/c.png");
277277 /// ```
278278 #[ inline]
You can’t perform that action at this time.
0 commit comments