Skip to content

Commit

Permalink
docs(README): Fix the example in the README.
Browse files Browse the repository at this point in the history
  • Loading branch information
reem authored and seanmonstar committed Feb 26, 2015
1 parent 3606f4a commit 9998417
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,8 @@ use hyper::net::Fresh;
use hyper::IpAddr::Ipv4Addr;

fn hello(_: Request, mut res: Response<Fresh>) {
*res.status_mut() = StatusCode::Ok;
let mut res = res.start().unwrap();
res.write(b"Hello World!");
res.write_all(b"Hello World!").unwrap();
res.end().unwrap();
}

Expand Down

0 comments on commit 9998417

Please sign in to comment.