diff --git a/README.md b/README.md index 9894fd0c..d76fb7bc 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,8 @@ fn hello(_: Request, res: Response) { } fn main() { - Server::http("127.0.0.1:3000").unwrap().handle(hello); + Server::http("127.0.0.1:3000").unwrap() + .handle(hello).unwrap(); } ```