From c5e1e0eddd4d550c8e762cc8d0a8cedf325d555d Mon Sep 17 00:00:00 2001 From: Sean McArthur Date: Thu, 31 May 2018 11:57:42 -0700 Subject: [PATCH] remove note about using ? since it can be used in main now --- src/lib.rs | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 18a13d3..8a7d2bb 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -25,25 +25,6 @@ //! applications that only require a few HTTP requests, and wish to handle //! them synchronously. //! -//! ## Code example structure -//! Note that all the following examples expect to be run outside of `main` because `?` is used. Like so: -//! -//! ```rust -//! use reqwest::{Error, Response}; -//! -//! fn run() -> Result<(), Error> { -//! let body = reqwest::get("https://www.rust-lang.org")? -//! .text()?; -//! -//! println!("body = {:?}", body); -//! Ok(()) -//! } -//! -//! fn main() { -//! run(); -//! } -//! ``` -//! //! ## Making a GET request //! //! For a single request, you can use the [`get`][get] shortcut method.