Skip to content

Commit

Permalink
url: update comments to remove mentions of gopher scheme
Browse files Browse the repository at this point in the history
Following changes in 2f204d0, the
gopher scheme is no longer recognized.
  • Loading branch information
djc committed Aug 19, 2020
1 parent d3b36bf commit 0587063
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions url/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -927,7 +927,7 @@ impl Url {
/// Return the port number for this URL, or the default port number if it is known.
///
/// This method only knows the default port number
/// of the `http`, `https`, `ws`, `wss`, `ftp`, and `gopher` schemes.
/// of the `http`, `https`, `ws`, `wss` and `ftp` schemes.
///
/// For URLs in these schemes, this method always returns `Some(_)`.
/// For other schemes, it is the same as `Url::port()`.
Expand Down Expand Up @@ -1956,9 +1956,9 @@ impl Url {
///
/// * If the new scheme is not in `[a-zA-Z][a-zA-Z0-9+.-]+`
/// * If this URL is cannot-be-a-base and the new scheme is one of
/// `http`, `https`, `ws`, `wss`, `ftp`, or `gopher`
/// `http`, `https`, `ws`, `wss` or `ftp`
/// * If either the old or new scheme is `http`, `https`, `ws`,
/// `wss`, `ftp`, or `gopher` and the other is not one of these
/// `wss` or `ftp` and the other is not one of these
/// * If the new scheme is `file` and this URL includes credentials
/// or has a non-null port
/// * If this URL's scheme is `file` and its host is empty or null
Expand Down
2 changes: 1 addition & 1 deletion url/src/origin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ pub fn url_origin(url: &Url) -> Origin {
/// - If the scheme is "blob" the origin is the origin of the
/// URL contained in the path component. If parsing fails,
/// it is an opaque origin.
/// - If the scheme is "ftp", "gopher", "http", "https", "ws", or "wss",
/// - If the scheme is "ftp", "http", "https", "ws", or "wss",
/// then the origin is a tuple of the scheme, host, and port.
/// - If the scheme is anything else, the origin is opaque, meaning
/// the URL does not have the same origin as any other URL.
Expand Down
2 changes: 1 addition & 1 deletion url/src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ impl<'a> Parser<'a> {
}
}

/// Scheme other than file, http, https, ws, ws, ftp, gopher.
/// Scheme other than file, http, https, ws, ws, ftp.
fn parse_non_special(
mut self,
input: Input,
Expand Down

0 comments on commit 0587063

Please sign in to comment.