Skip to content

Commit 1f0877f

Browse files
davidpdrsnjplatte
andauthored
Apply suggestions from code review
Co-authored-by: Jonas Platte <jplatte@users.noreply.github.com>
1 parent 6dacde7 commit 1f0877f

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

axum/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3737
- **breaking:** The `Body` and `BodyError` associated types on the
3838
`IntoResponse` trait have been removed - instead, `.into_response()` will now
3939
always return `Response<BoxBody>` ([#571])
40-
- **breaking:** The variants of `Path`'s rejection type has been renamed ([#574])
40+
- **breaking:** The variants of `Path`'s rejection type have been renamed ([#574])
4141
- **added:** `Path`'s rejection type now provides data about exactly which part of
4242
the path couldn't be deserialized ([#574])
4343

axum/src/extract/path/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ use std::{
130130
/// # Providing detailed rejection output
131131
///
132132
/// If the URI cannot be deserialized into the target type the request will be rejected and an
133-
/// error response will be returned. See [`customize-path-rejection`] for an exapmle of how to customize that error.
133+
/// error response will be returned. See [`customize-path-rejection`] for an example of how to customize that error.
134134
///
135135
/// [`serde`]: https://crates.io/crates/serde
136136
/// [`serde::Deserialize`]: https://docs.rs/serde/1.0.127/serde/trait.Deserialize.html
@@ -252,7 +252,7 @@ impl fmt::Display for PathDeserializationError {
252252

253253
impl std::error::Error for PathDeserializationError {}
254254

255-
/// The kinds of errors that can happen we deserializing into a [`Path`].
255+
/// The kinds of errors that can happen when deserializing into a [`Path`].
256256
///
257257
/// This type is obtained through [`FailedToDeserializePathParams::into_kind`] and is useful for building
258258
/// more precise error messages.

0 commit comments

Comments
 (0)