diff --git a/README.md b/README.md index d20bcb1..0318ab7 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ Async: use std::collections::HashMap; #[tokio::main] -async fn main() -> Result<(), Box> { +async fn main() -> Result<(), Box> { let resp: HashMap = reqwest::get("https://httpbin.org/ip") .await? .json() @@ -41,7 +41,7 @@ Blocking: ```rust,no_run use std::collections::HashMap; -fn main() -> Result<(), Box> { +fn main() -> Result<(), Box> { let resp: HashMap = reqwest::blocking::get("https://httpbin.org/ip")? .json()?; println!("{:#?}", resp);