mirror of
https://github.com/tokio-rs/axum.git
synced 2024-12-28 23:38:20 +01:00
Minor doc fixes (#1562)
This commit is contained in:
parent
ddee1c1d1a
commit
7d0bb28876
6 changed files with 7 additions and 7 deletions
|
@ -49,7 +49,7 @@ use std::{fmt, ops::Deref};
|
|||
/// If the query string cannot be parsed it will reject the request with a `422
|
||||
/// Unprocessable Entity` response.
|
||||
///
|
||||
/// For handling values being empty vs missing see the (query-params-with-empty-strings)[example]
|
||||
/// For handling values being empty vs missing see the [query-params-with-empty-strings][example]
|
||||
/// example.
|
||||
///
|
||||
/// [example]: https://github.com/tokio-rs/axum/blob/main/examples/query-params-with-empty-strings/src/main.rs
|
||||
|
|
|
@ -41,7 +41,7 @@ use std::ops::Deref;
|
|||
/// If the query string cannot be parsed it will reject the request with a `422
|
||||
/// Unprocessable Entity` response.
|
||||
///
|
||||
/// For handling values being empty vs missing see the (query-params-with-empty-strings)[example]
|
||||
/// For handling values being empty vs missing see the [query-params-with-empty-strings][example]
|
||||
/// example.
|
||||
///
|
||||
/// [example]: https://github.com/tokio-rs/axum/blob/main/examples/query-params-with-empty-strings/src/main.rs
|
||||
|
|
|
@ -8,7 +8,7 @@ use std::{
|
|||
|
||||
/// Extractor for state.
|
||||
///
|
||||
/// See ["Accessing state in middleware"][state-from-middleware] for how to
|
||||
/// See ["Accessing state in middleware"][state-from-middleware] for how to
|
||||
/// access state in middleware.
|
||||
///
|
||||
/// [state-from-middleware]: crate::middleware#accessing-state-in-middleware
|
||||
|
|
|
@ -62,7 +62,7 @@ where
|
|||
#[inline]
|
||||
fn poll_ready(&mut self, _cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>> {
|
||||
// `IntoServiceStateInExtension` can only be constructed from async functions which are always ready, or
|
||||
// from `Layered` which bufferes in `<Layered as Handler>::call` and is therefore
|
||||
// from `Layered` which buffers in `<Layered as Handler>::call` and is therefore
|
||||
// also always ready.
|
||||
Poll::Ready(Ok(()))
|
||||
}
|
||||
|
|
|
@ -159,7 +159,7 @@ where
|
|||
#[inline]
|
||||
fn poll_ready(&mut self, _cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>> {
|
||||
// `IntoService` can only be constructed from async functions which are always ready, or
|
||||
// from `Layered` which bufferes in `<Layered as Handler>::call` and is therefore
|
||||
// from `Layered` which buffers in `<Layered as Handler>::call` and is therefore
|
||||
// also always ready.
|
||||
Poll::Ready(Ok(()))
|
||||
}
|
||||
|
|
|
@ -94,7 +94,7 @@
|
|||
//!
|
||||
//! # Extractors
|
||||
//!
|
||||
//! An extractor is a type that implements [`FromRequest`] or [`FromRequestParts`]. Extractors is
|
||||
//! An extractor is a type that implements [`FromRequest`] or [`FromRequestParts`]. Extractors are
|
||||
//! how you pick apart the incoming request to get the parts your handler needs.
|
||||
//!
|
||||
//! ```rust
|
||||
|
@ -204,7 +204,7 @@
|
|||
//! ```
|
||||
//!
|
||||
//! You should prefer using [`State`] if possible since it's more type safe. The downside is that
|
||||
//! its less dynamic than request extensions.
|
||||
//! it's less dynamic than request extensions.
|
||||
//!
|
||||
//! See [`State`] for more details about accessing state.
|
||||
//!
|
||||
|
|
Loading…
Reference in a new issue