touch up Client doc example

This commit is contained in:
Sean McArthur
2017-05-18 14:35:22 -07:00
parent dfaf25d1cb
commit 32907dc100

View File

@@ -31,20 +31,16 @@ static DEFAULT_USER_AGENT: &'static str = concat!(env!("CARGO_PKG_NAME"), "/", e
///
/// # Examples
///
/// ```no_run
/// # extern crate reqwest;
/// #
/// ```
/// # use reqwest::{Error, Client};
/// #
/// # fn run() -> Result<(), Error> {
/// let client = Client::new()?;
/// client.get("http://httpbin.org/").send()?;
/// let client = Client::new()?;
/// let resp = client.get("http://httpbin.org/").send()?;
/// # drop(resp);
/// # Ok(())
/// # }
///
/// # fn main() {
/// # run().unwrap();
/// # }
/// ```
#[derive(Clone)]
pub struct Client {