From 61f60eb68885fa4d7e24b8ea9b1c039e3cd76924 Mon Sep 17 00:00:00 2001 From: nlincoln Date: Sat, 13 May 2017 13:18:07 -0500 Subject: [PATCH 1/2] Explains the term "fragment" in Url::fragment Fixes issue #318 --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 7e6a438b..315f437e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -882,7 +882,7 @@ impl Url { form_urlencoded::parse(self.query().unwrap_or("").as_bytes()) } - /// Return this URL’s fragment identifier, if any. + /// Return this URL’s fragment identifier (the portion after the #), if any. /// /// **Note:** the parser did *not* percent-encode this component, /// but the input may have been percent-encoded already. From 0e48a11170e5fb72d6a1ec61cd49afb71bbc6b37 Mon Sep 17 00:00:00 2001 From: nlincoln Date: Sat, 13 May 2017 13:19:32 -0500 Subject: [PATCH 2/2] Clarifies that the fragment is part of the url --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 315f437e..ad7d98ed 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -882,7 +882,7 @@ impl Url { form_urlencoded::parse(self.query().unwrap_or("").as_bytes()) } - /// Return this URL’s fragment identifier (the portion after the #), if any. + /// Return this URL’s fragment identifier (the portion of the URL after the #), if any. /// /// **Note:** the parser did *not* percent-encode this component, /// but the input may have been percent-encoded already.