From 7bc9a396b8b3ace46ae51e10da65953fa6bdcc6f Mon Sep 17 00:00:00 2001 From: Artem Chernyak Date: Tue, 9 May 2017 18:14:57 -0500 Subject: [PATCH 1/2] added explanation of Url::fragment --- src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 7e6a438b8..779343204 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -884,6 +884,9 @@ impl Url { /// Return this URL’s fragment identifier, if any. /// + /// A fragment refers to the part of a url follow the `#` symbol, + /// which is used to identify a location in a document. + /// /// **Note:** the parser did *not* percent-encode this component, /// but the input may have been percent-encoded already. pub fn fragment(&self) -> Option<&str> { From 66e83db646185ed4aee30cf31325eb8c107bb449 Mon Sep 17 00:00:00 2001 From: Artem Chernyak Date: Wed, 10 May 2017 09:19:43 -0500 Subject: [PATCH 2/2] verbiage change --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 779343204..399de82ca 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -884,8 +884,8 @@ impl Url { /// Return this URL’s fragment identifier, if any. /// - /// A fragment refers to the part of a url follow the `#` symbol, - /// which is used to identify a location in a document. + /// A fragment is the part of a url following the `#` symbol, + /// which is used to identify a location in the document. /// /// **Note:** the parser did *not* percent-encode this component, /// but the input may have been percent-encoded already.