Skip to content

Commit ac423e3

Browse files
authored
Minor doc adjustments
1 parent 30980a0 commit ac423e3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

axum-extra/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning].
77

88
# Unreleased
99

10-
- **added:** Add `json!` for easy construction of JSON responses ([#2962]).
10+
- **added:** Add `json!` for easy construction of JSON responses ([#2962])
1111

1212
[#2962]: https://github.com/tokio-rs/axum/pull/2962
1313

axum-extra/src/response/erased_json.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use serde::Serialize;
1313
/// types as JSON from different branches inside a handler.
1414
///
1515
/// Like [`axum::Json`],
16-
/// if the [`Serialize`] implementation decides to fail
16+
/// if the [`Serialize`] implementation fails
1717
/// or if a map with non-string keys is used,
1818
/// a 500 response will be issued
1919
/// whose body is the error message in UTF-8.
@@ -87,7 +87,7 @@ impl IntoResponse for ErasedJson {
8787
/// A `Content-Type: application/json` header is automatically added.
8888
/// Any variable or expression implementing [`Serialize`]
8989
/// can be interpolated as a value in the literal.
90-
/// If the [`Serialize`] implementation decides to fail,
90+
/// If the [`Serialize`] implementation fails,
9191
/// or if a map with non-string keys is used,
9292
/// a 500 response will be issued
9393
/// whose body is the error message in UTF-8.

0 commit comments

Comments
 (0)