1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-12-16 21:26:34 +00:00

fix: error example

This commit is contained in:
Roms1383 2024-07-16 00:25:00 +07:00
parent 04e8a417e1
commit 7038244a7d

View file

@ -27,7 +27,7 @@ async fn optional_payload(
}
#[post("/mandatory")]
async fn mandatory_payload(qs: Query<MandatoryFilters>, payload: Json<OptionalPayload>) -> String {
async fn mandatory_payload(qs: Query<MandatoryFilters>, payload: Json<MandatoryPayload>) -> String {
format!(
"you asked for the mandatory query params: {:#?} and mandatory body: {:#?}",
qs, payload