Skip to content

Commit

Permalink
Minor doc adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
jplatte authored Oct 6, 2024
1 parent 30980a0 commit ac423e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion axum-extra/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning].

# Unreleased

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

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

Expand Down
4 changes: 2 additions & 2 deletions axum-extra/src/response/erased_json.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use serde::Serialize;
/// types as JSON from different branches inside a handler.
///
/// Like [`axum::Json`],
/// if the [`Serialize`] implementation decides to fail
/// if the [`Serialize`] implementation fails
/// or if a map with non-string keys is used,
/// a 500 response will be issued
/// whose body is the error message in UTF-8.
Expand Down Expand Up @@ -87,7 +87,7 @@ impl IntoResponse for ErasedJson {
/// A `Content-Type: application/json` header is automatically added.
/// Any variable or expression implementing [`Serialize`]
/// can be interpolated as a value in the literal.
/// If the [`Serialize`] implementation decides to fail,
/// If the [`Serialize`] implementation fails,
/// or if a map with non-string keys is used,
/// a 500 response will be issued
/// whose body is the error message in UTF-8.
Expand Down

0 comments on commit ac423e3

Please sign in to comment.