From 56c1c02b8411fd3762a73b51a6c15ea74d6aec76 Mon Sep 17 00:00:00 2001 From: puffybsd Date: Wed, 16 Jan 2019 00:23:41 -0500 Subject: [PATCH] Fix bugs in README example (#441) Fix missing > in method return signature, undeclared variable, and adds return type to match method signature. --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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(()) } ```