Skip to content

Commit 0587063

Browse files
committed
url: update comments to remove mentions of gopher scheme
Following changes in 2f204d0, the gopher scheme is no longer recognized.
1 parent d3b36bf commit 0587063

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

url/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -927,7 +927,7 @@ impl Url {
927927
/// Return the port number for this URL, or the default port number if it is known.
928928
///
929929
/// This method only knows the default port number
930-
/// of the `http`, `https`, `ws`, `wss`, `ftp`, and `gopher` schemes.
930+
/// of the `http`, `https`, `ws`, `wss` and `ftp` schemes.
931931
///
932932
/// For URLs in these schemes, this method always returns `Some(_)`.
933933
/// For other schemes, it is the same as `Url::port()`.
@@ -1956,9 +1956,9 @@ impl Url {
19561956
///
19571957
/// * If the new scheme is not in `[a-zA-Z][a-zA-Z0-9+.-]+`
19581958
/// * If this URL is cannot-be-a-base and the new scheme is one of
1959-
/// `http`, `https`, `ws`, `wss`, `ftp`, or `gopher`
1959+
/// `http`, `https`, `ws`, `wss` or `ftp`
19601960
/// * If either the old or new scheme is `http`, `https`, `ws`,
1961-
/// `wss`, `ftp`, or `gopher` and the other is not one of these
1961+
/// `wss` or `ftp` and the other is not one of these
19621962
/// * If the new scheme is `file` and this URL includes credentials
19631963
/// or has a non-null port
19641964
/// * If this URL's scheme is `file` and its host is empty or null

url/src/origin.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ pub fn url_origin(url: &Url) -> Origin {
4444
/// - If the scheme is "blob" the origin is the origin of the
4545
/// URL contained in the path component. If parsing fails,
4646
/// it is an opaque origin.
47-
/// - If the scheme is "ftp", "gopher", "http", "https", "ws", or "wss",
47+
/// - If the scheme is "ftp", "http", "https", "ws", or "wss",
4848
/// then the origin is a tuple of the scheme, host, and port.
4949
/// - If the scheme is anything else, the origin is opaque, meaning
5050
/// the URL does not have the same origin as any other URL.

url/src/parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ impl<'a> Parser<'a> {
466466
}
467467
}
468468

469-
/// Scheme other than file, http, https, ws, ws, ftp, gopher.
469+
/// Scheme other than file, http, https, ws, ws, ftp.
470470
fn parse_non_special(
471471
mut self,
472472
input: Input,

0 commit comments

Comments
 (0)