mirror of
https://github.com/tokio-rs/axum.git
synced 2026-09-06 00:00:17 +02:00
Fix typos found by crate-ci/typos
This commit is contained in:
committed by
David Pedersen
parent
b0ebb7f728
commit
b199604c9f
@@ -128,7 +128,7 @@ impl CookieJar {
|
||||
|
||||
/// Create a new empty `CookieJar`.
|
||||
///
|
||||
/// This is inteded to be used in middleware and other places where it might be difficult to
|
||||
/// This is intended to be used in middleware and other places where it might be difficult to
|
||||
/// run extractors. Normally you should create `CookieJar`s through [`FromRequestParts`].
|
||||
///
|
||||
/// If you need a jar that contains the headers from a request use `impl From<&HeaderMap> for
|
||||
|
||||
@@ -170,7 +170,7 @@ impl PrivateCookieJar {
|
||||
|
||||
/// Create a new empty `PrivateCookieJarIter`.
|
||||
///
|
||||
/// This is inteded to be used in middleware and other places where it might be difficult to
|
||||
/// This is intended to be used in middleware and other places where it might be difficult to
|
||||
/// run extractors. Normally you should create `PrivateCookieJar`s through [`FromRequestParts`].
|
||||
///
|
||||
/// [`FromRequestParts`]: axum::extract::FromRequestParts
|
||||
|
||||
@@ -187,7 +187,7 @@ impl SignedCookieJar {
|
||||
|
||||
/// Create a new empty `SignedCookieJar`.
|
||||
///
|
||||
/// This is inteded to be used in middleware and other places where it might be difficult to
|
||||
/// This is intended to be used in middleware and other places where it might be difficult to
|
||||
/// run extractors. Normally you should create `SignedCookieJar`s through [`FromRequestParts`].
|
||||
///
|
||||
/// [`FromRequestParts`]: axum::extract::FromRequestParts
|
||||
|
||||
@@ -72,7 +72,7 @@ use std::{
|
||||
/// ```
|
||||
///
|
||||
/// In general you should consume `Multipart` by looping over the fields in order and make sure not
|
||||
/// to keep `Field`s around from previous loop iterations. That will mimimize the risk of runtime
|
||||
/// to keep `Field`s around from previous loop iterations. That will minimize the risk of runtime
|
||||
/// errors.
|
||||
///
|
||||
/// # Differences between this and `axum::extract::Multipart`
|
||||
|
||||
@@ -26,7 +26,7 @@ pub trait HandlerCallWithExtractors<T, S, B>: Sized {
|
||||
/// Call the handler with the extracted inputs.
|
||||
fn call(self, extractors: T, state: S) -> <Self as HandlerCallWithExtractors<T, S, B>>::Future;
|
||||
|
||||
/// Conver this `HandlerCallWithExtractors` into [`Handler`].
|
||||
/// Convert this `HandlerCallWithExtractors` into [`Handler`].
|
||||
fn into_handler(self) -> IntoHandler<Self, T, S, B> {
|
||||
IntoHandler {
|
||||
handler: self,
|
||||
|
||||
@@ -145,7 +145,7 @@ use serde::Serialize;
|
||||
///
|
||||
/// ## Customizing the rejection
|
||||
///
|
||||
/// By default the rejection used in the [`FromRequest`] implemetation will be [`PathRejection`].
|
||||
/// By default the rejection used in the [`FromRequest`] implementation will be [`PathRejection`].
|
||||
///
|
||||
/// That can be customized using `#[typed_path("...", rejection(YourType))]`:
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user