updated readme

This commit is contained in:
Andrew Segavac
2021-06-26 18:06:22 -06:00
parent 641330c994
commit 97ba007943

View File

@@ -68,7 +68,7 @@ async fn handle(req: http.Request, resp: mut http.Response): {
let response_data = ExampleResponse{ let response_data = ExampleResponse{
id: 4, id: 4,
name: "Andrew", name: "Andrew",
email: "andrew@example.com", email: "andrew@boringlang.com",
}; };
await resp.set_status(200); await resp.set_status(200);
await resp.write(json.encode[ExampleResponse](response_data)); await resp.write(json.encode[ExampleResponse](response_data));