Skip to content

Commit

Permalink
Fix typo in url module docs
Browse files Browse the repository at this point in the history
"Refenence" -> "Reference"
  • Loading branch information
autarch authored and fosskers committed Dec 9, 2021
1 parent 5d3aef1 commit f83728f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/browser/url.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ impl Url {
/// Url::new().set_path(&["my", "path"])
/// ```
///
/// # Refenences
/// # References
/// * [MDN docs](https://developer.mozilla.org/en-US/docs/Web/API/URL/pathname)
pub fn set_path<T: ToString>(
mut self,
Expand All @@ -230,7 +230,7 @@ impl Url {
/// Url::new().set_hash_path(&["my", "path"])
/// ```
///
/// # Refenences
/// # References
/// * [MDN docs](https://developer.mozilla.org/en-US/docs/Web/API/URL/pathname)
pub fn set_hash_path<T: ToString>(
mut self,
Expand Down Expand Up @@ -274,7 +274,7 @@ impl Url {
/// ])
/// ```
///
/// # Refenences
/// # References
/// * [MDN docs](https://developer.mozilla.org/en-US/docs/Web/API/URL/search)
pub fn set_search(mut self, search: impl Into<UrlSearch>) -> Self {
self.search = search.into();
Expand All @@ -283,7 +283,7 @@ impl Url {

/// Get path.
///
/// # Refenences
/// # References
/// * [MDN docs](https://developer.mozilla.org/en-US/docs/Web/API/URL/pathname)
pub fn path(&self) -> &[String] {
&self.path
Expand All @@ -305,15 +305,15 @@ impl Url {

/// Get search.
///
/// # Refenences
/// # References
/// * [MDN docs](https://developer.mozilla.org/en-US/docs/Web/API/URL/search)
pub const fn search(&self) -> &UrlSearch {
&self.search
}

/// Get mutable search.
///
/// # Refenences
/// # References
/// * [MDN docs](https://developer.mozilla.org/en-US/docs/Web/API/URL/search)
pub fn search_mut(&mut self) -> &mut UrlSearch {
&mut self.search
Expand Down

0 comments on commit f83728f

Please # to comment.