Skip to content

Commit

Permalink
Minor doc fixes (#1562)
Browse files Browse the repository at this point in the history
  • Loading branch information
walfie committed Nov 22, 2022
1 parent ddee1c1 commit 7d0bb28
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion axum-extra/src/extract/query.rs
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion axum/src/extract/query.rs
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion axum/src/extract/state.rs
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion axum/src/handler/into_service_state_in_extension.rs
Expand Up @@ -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(()))
}
Expand Down
2 changes: 1 addition & 1 deletion axum/src/handler/service.rs
Expand Up @@ -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(()))
}
Expand Down
4 changes: 2 additions & 2 deletions axum/src/lib.rs
Expand Up @@ -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
Expand Down Expand Up @@ -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.
//!
Expand Down

0 comments on commit 7d0bb28

Please sign in to comment.