Skip to content

Commit 04e865c

Browse files
committed
Merge pull request #294 from xymostech/patch-2
fix(readme): Make the README client example work
2 parents c2784bc + 9b5d6aa commit 04e865c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,16 @@ fn main() {
4646
let mut client = Client::new();
4747

4848
// Creating an outgoing request.
49-
let mut res = client.get("http://www.gooogle.com/")
49+
let res = client.get("http://www.gooogle.com/")
5050
// set a header
5151
.header(Connection(vec![Close]))
5252
// let 'er go!
53-
.send();
53+
.send().unwrap();
5454

5555
// Read the Response.
5656
let body = res.read_to_string().unwrap();
5757

58-
println!("Response: {}", res);
58+
println!("Response: {}", body);
5959
}
6060
```
6161

0 commit comments

Comments
 (0)