diff --git a/README.md b/README.md index d82eef0..949ed11 100644 --- a/README.md +++ b/README.md @@ -20,10 +20,11 @@ extern crate reqwest; use std::collections::HashMap; -fn main() -> Result<(), Box { - let res: HashMap = reqwest::get("https://httpbin.org/ip")? +fn main() -> Result<(), Box> { + let resp: HashMap = reqwest::get("https://httpbin.org/ip")? .json()?; println!("{:#?}", resp); + Ok(()) } ```