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:
parent
04e8a417e1
commit
7038244a7d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue