We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2641e36 commit abcb111Copy full SHA for abcb111
src/lib.rs
@@ -884,6 +884,15 @@ impl Url {
884
885
/// Return this URL’s fragment identifier, if any.
886
///
887
+ /// A fragment is the part of the URL after the `#` symbol.
888
+ /// The fragment is optional and, if present, contains a fragment identifier
889
+ /// that identifies a secondary resource, such as a section heading
890
+ /// of a document.
891
+ ///
892
+ /// In HTML, the fragment identifier is usually the id attribute of a an element
893
+ /// that is scrolled to on load. Browsers typically will not send the fragment portion
894
+ /// of a URL to the server.
895
896
/// **Note:** the parser did *not* percent-encode this component,
897
/// but the input may have been percent-encoded already.
898
pub fn fragment(&self) -> Option<&str> {
0 commit comments