mirror of https://github.com/rwf2/Rocket.git
Fix several broken rustdoc links.
This commit is contained in:
parent
322f88e61a
commit
1edfa15d52
|
@ -1061,9 +1061,9 @@ pub fn derive_uri_display_path(input: TokenStream) -> TokenStream {
|
|||
emit!(derive::uri_display::derive_uri_display_path(input))
|
||||
}
|
||||
|
||||
/// Generates a [`Vec`] of [`Route`]s from a set of route paths.
|
||||
/// Generates a `Vec` of [`Route`]s from a set of route paths.
|
||||
///
|
||||
/// The `routes!` macro expands a list of route paths into a [`Vec`] of their
|
||||
/// The `routes!` macro expands a list of route paths into a `Vec` of their
|
||||
/// corresponding [`Route`] structures. For example, given the following routes:
|
||||
///
|
||||
/// ```rust
|
||||
|
@ -1117,9 +1117,9 @@ pub fn routes(input: TokenStream) -> TokenStream {
|
|||
emit!(bang::routes_macro(input))
|
||||
}
|
||||
|
||||
/// Generates a [`Vec`] of [`Catcher`]s from a set of catcher paths.
|
||||
/// Generates a `Vec` of [`Catcher`]s from a set of catcher paths.
|
||||
///
|
||||
/// The `catchers!` macro expands a list of catcher paths into a [`Vec`] of
|
||||
/// The `catchers!` macro expands a list of catcher paths into a `Vec` of
|
||||
/// their corresponding [`Catcher`] structures. For example, given the following
|
||||
/// catchers:
|
||||
///
|
||||
|
|
|
@ -308,7 +308,7 @@ impl<'r> Request<'r> {
|
|||
/// Because it is common for proxies to forward connections for clients, the
|
||||
/// remote address may contain information about the proxy instead of the
|
||||
/// client. For this reason, proxies typically set a "X-Real-IP" header
|
||||
/// [`ip_header`](rocket::Config::ip_header) with the client's true IP. To
|
||||
/// [`ip_header`](crate::Config::ip_header) with the client's true IP. To
|
||||
/// extract this IP from the request, use the [`real_ip()`] or
|
||||
/// [`client_ip()`] methods.
|
||||
///
|
||||
|
@ -358,7 +358,7 @@ impl<'r> Request<'r> {
|
|||
}
|
||||
|
||||
/// Returns the IP address of the configured
|
||||
/// [`ip_header`](rocket::Config::ip_header) of the request if such a header
|
||||
/// [`ip_header`](crate::Config::ip_header) of the request if such a header
|
||||
/// is configured, exists and contains a valid IP address.
|
||||
///
|
||||
/// # Example
|
||||
|
@ -387,7 +387,7 @@ impl<'r> Request<'r> {
|
|||
}
|
||||
|
||||
/// Attempts to return the client's IP address by first inspecting the
|
||||
/// [`ip_header`](rocket::Config::ip_header) and then using the remote
|
||||
/// [`ip_header`](crate::Config::ip_header) and then using the remote
|
||||
/// connection's IP address. Note that the built-in `IpAddr` request guard
|
||||
/// can be used to retrieve the same information in a handler:
|
||||
///
|
||||
|
|
Loading…
Reference in New Issue