adjust proxy doc example

This commit is contained in:
Sean McArthur
2017-10-26 15:30:55 -07:00
parent e60fd533f6
commit 9631b31bfc

View File

@@ -13,13 +13,11 @@ use {into_url, IntoUrl, Url};
///
/// For instance, let's look at `Proxy::http`:
///
/// ```
/// # extern crate reqwest;
/// ```rust
/// # fn run() -> Result<(), Box<::std::error::Error>> {
/// let proxy = reqwest::Proxy::http("https://secure.example")?;
/// # Ok(())
/// # }
/// # fn main() {}
/// ```
///
/// This proxy will intercept all HTTP requests, and make use of the proxy