docs(readme): Make the README client example work

`res` needs to be mutable
This commit is contained in:
Camille TJHOA
2015-02-10 22:44:00 +01:00
parent e6cae3cdaf
commit b5a6175bf5

View File

@@ -46,7 +46,7 @@ fn main() {
let mut client = Client::new();
// Creating an outgoing request.
let res = client.get("http://www.gooogle.com/")
let mut res = client.get("http://www.gooogle.com/")
// set a header
.header(Connection(vec![Close]))
// let 'er go!