From 11d8b12fa388b8195b7e8af56c70c3f52d4eba13 Mon Sep 17 00:00:00 2001 From: Jonathan Reem Date: Mon, 22 Sep 2014 17:16:30 -0700 Subject: [PATCH] Fixed bad reference to echo server example. --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 29bc6621..67587c99 100644 --- a/README.md +++ b/README.md @@ -19,12 +19,12 @@ The documentation is located at [http://hyperium.github.io/hyper](http://hyperiu ## Example -Echo Server: +Hello World Server: ```rust -fn echo(mut incoming: Incoming) { +fn hello(mut incoming: Incoming) { for (_, mut res) in incoming { - *res.status_mut() = hyper::status::Ok; + *res.status_mut() = status::Ok; let mut res = res.start().unwrap(); res.write(b"Hello World!"); res.end().unwrap(); @@ -33,7 +33,7 @@ fn echo(mut incoming: Incoming) { fn main() { let server = Server::http(Ipv4Addr(127, 0, 0, 1), 1337); - server.listen(echo).unwrap(); + server.listen(hello).unwrap(); } ```