remove unnecessary double-colons
This commit is contained in:
		
				
					committed by
					
						 Sean McArthur
						Sean McArthur
					
				
			
			
				
	
			
			
			
						parent
						
							06353fbb1a
						
					
				
				
					commit
					4bb4149b63
				
			| @@ -44,7 +44,7 @@ impl Response { | ||||
|     /// Checking for general status class: | ||||
|     /// | ||||
|     /// ```rust | ||||
|     /// # fn run() -> Result<(), Box<::std::error::Error>> { | ||||
|     /// # fn run() -> Result<(), Box<std::error::Error>> { | ||||
|     /// let resp = reqwest::get("http://httpbin.org/get")?; | ||||
|     /// if resp.status().is_success() { | ||||
|     ///     println!("success!"); | ||||
| @@ -62,7 +62,7 @@ impl Response { | ||||
|     /// ```rust | ||||
|     /// use reqwest::Client; | ||||
|     /// use reqwest::StatusCode; | ||||
|     /// # fn run() -> Result<(), Box<::std::error::Error>> { | ||||
|     /// # fn run() -> Result<(), Box<std::error::Error>> { | ||||
|     /// let client = Client::new(); | ||||
|     /// | ||||
|     /// let resp = client.post("http://httpbin.org/post") | ||||
| @@ -94,7 +94,7 @@ impl Response { | ||||
|     /// use reqwest::Client; | ||||
|     /// use reqwest::header::ETAG; | ||||
|     /// | ||||
|     /// # fn run() -> Result<(), Box<::std::error::Error>> { | ||||
|     /// # fn run() -> Result<(), Box<std::error::Error>> { | ||||
|     /// let client = Client::new(); | ||||
|     /// | ||||
|     /// let mut resp = client.get("http://httpbin.org/cache").send()?; | ||||
| @@ -133,7 +133,7 @@ impl Response { | ||||
|     /// # Example | ||||
|     /// | ||||
|     /// ```rust | ||||
|     /// # fn run() -> Result<(), Box<::std::error::Error>> { | ||||
|     /// # fn run() -> Result<(), Box<std::error::Error>> { | ||||
|     /// let resp = reqwest::get("http://httpbin.org/redirect/1")?; | ||||
|     /// assert_eq!(resp.url().as_str(), "http://httpbin.org/get"); | ||||
|     /// # Ok(()) | ||||
| @@ -149,7 +149,7 @@ impl Response { | ||||
|     /// # Example | ||||
|     /// | ||||
|     /// ```rust | ||||
|     /// # fn run() -> Result<(), Box<::std::error::Error>> { | ||||
|     /// # fn run() -> Result<(), Box<std::error::Error>> { | ||||
|     /// let resp = reqwest::get("http://httpbin.org/redirect/1")?; | ||||
|     /// println!("httpbin.org address: {:?}", resp.remote_addr()); | ||||
|     /// # Ok(()) | ||||
| @@ -222,7 +222,7 @@ impl Response { | ||||
|     /// | ||||
|     /// ```rust | ||||
|     /// # extern crate reqwest; | ||||
|     /// # fn run() -> Result<(), Box<::std::error::Error>> { | ||||
|     /// # fn run() -> Result<(), Box<std::error::Error>> { | ||||
|     /// let content = reqwest::get("http://httpbin.org/range/26")?.text()?; | ||||
|     /// # Ok(()) | ||||
|     /// # } | ||||
| @@ -249,7 +249,7 @@ impl Response { | ||||
|     /// | ||||
|     /// ```rust | ||||
|     /// # extern crate reqwest; | ||||
|     /// # fn run() -> Result<(), Box<::std::error::Error>> { | ||||
|     /// # fn run() -> Result<(), Box<std::error::Error>> { | ||||
|     /// let content = reqwest::get("http://httpbin.org/range/26")?.text_with_charset("utf-8")?; | ||||
|     /// # Ok(()) | ||||
|     /// # } | ||||
| @@ -281,7 +281,7 @@ impl Response { | ||||
|     /// # Example | ||||
|     /// | ||||
|     /// ```rust | ||||
|     /// # fn run() -> Result<(), Box<::std::error::Error>> { | ||||
|     /// # fn run() -> Result<(), Box<std::error::Error>> { | ||||
|     /// let mut resp = reqwest::get("http://httpbin.org/range/5")?; | ||||
|     /// let mut buf: Vec<u8> = vec![]; | ||||
|     /// resp.copy_to(&mut buf)?; | ||||
| @@ -302,7 +302,7 @@ impl Response { | ||||
|     /// | ||||
|     /// ```rust,no_run | ||||
|     /// # extern crate reqwest; | ||||
|     /// # fn run() -> Result<(), Box<::std::error::Error>> { | ||||
|     /// # fn run() -> Result<(), Box<std::error::Error>> { | ||||
|     /// let res = reqwest::get("http://httpbin.org/status/400")? | ||||
|     ///     .error_for_status(); | ||||
|     /// if let Err(err) = res { | ||||
| @@ -331,7 +331,7 @@ impl Response { | ||||
|     /// | ||||
|     /// ```rust,no_run | ||||
|     /// # extern crate reqwest; | ||||
|     /// # fn run() -> Result<(), Box<::std::error::Error>> { | ||||
|     /// # fn run() -> Result<(), Box<std::error::Error>> { | ||||
|     /// let res = reqwest::get("http://httpbin.org/status/400")?; | ||||
|     /// let res = res.error_for_status_ref(); | ||||
|     /// if let Err(err) = res { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user