Fix typos in docs (#318)

* Fix typo in docs

Typos for FromRequest

* One more typo
This commit is contained in:
heliumbrain 2021-09-12 16:25:25 +02:00 committed by GitHub
parent 4e088b40f6
commit 3741e16cf2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -345,15 +345,15 @@ pub use self::typed_header::TypedHeader;
/// # What is the `B` type parameter? /// # What is the `B` type parameter?
/// ///
/// `FromRequest` is generic over the request body (the `B` in /// `FromRequest` is generic over the request body (the `B` in
/// [`http::Request<B>`]). This is to allow `FromRequest` to be usable will any /// [`http::Request<B>`]). This is to allow `FromRequest` to be usable with any
/// type of request body. This is necessary because some middleware change the /// type of request body. This is necessary because some middleware change the
/// request body, for example to add timeouts. /// request body, for example to add timeouts.
/// ///
/// If you're writing your own `FromRequest` that wont be used outside your /// If you're writing your own `FromRequest` that wont be used outside your
/// application, and not using any middleware that changes the request body, you /// application, and not using any middleware that changes the request body, you
/// can most likely use `axum::body::Body`. Note this is also the default. /// can most likely use `axum::body::Body`. Note that this is also the default.
/// ///
/// If you're writing a library, thats intended for others to use, its recommended /// If you're writing a library that's intended for others to use, it's recommended
/// to keep the generic type parameter: /// to keep the generic type parameter:
/// ///
/// ```rust /// ```rust