diff --git a/axum/README.md b/axum/README.md index 407b81e8..08487807 100644 --- a/axum/README.md +++ b/axum/README.md @@ -66,7 +66,7 @@ async fn create_user( // this argument tells axum to parse the request body // as JSON into a `CreateUser` type Json(payload): Json, -) -> impl IntoResponse { +) -> (StatusCode, Json) { // insert your application logic here let user = User { id: 1337,