docs(misc): fix typos caught by codespell

This commit is contained in:
Tshepang Lekhonkhobe
2015-05-06 02:25:29 +02:00
parent 67340a5d3e
commit 7ddea2791c
7 changed files with 8 additions and 8 deletions

View File

@@ -25,7 +25,7 @@
//! # use hyper::Client;
//! let mut client = Client::new();
//!
//! let res = client.post("http://exmaple.domain")
//! let res = client.post("http://example.domain")
//! .body("foo=bar")
//! .send()
//! .unwrap();
@@ -266,7 +266,7 @@ impl<'a, U: IntoUrl> RequestBuilder<'a, U> {
}
};
match client.redirect_policy {
// separate branches because they cant be one
// separate branches because they can't be one
RedirectPolicy::FollowAll => (), //continue
RedirectPolicy::FollowIf(cond) if cond(&url) => (), //continue
_ => return Ok(res),

View File

@@ -106,7 +106,7 @@ impl Request<Fresh> {
None => ()
};
// cant do in match above, thanks borrowck
// can't do in match above, thanks borrowck
if chunked {
let encodings = match self.headers.get_mut::<header::TransferEncoding>() {
Some(&mut header::TransferEncoding(ref mut encodings)) => {

View File

@@ -29,7 +29,7 @@ pub enum Error {
TooLarge,
/// An invalid `Status`, such as `1337 ELITE`.
Status,
/// An `IoError` that occured while trying to read or write to a network stream.
/// An `IoError` that occurred while trying to read or write to a network stream.
Io(IoError),
}

View File

@@ -35,7 +35,7 @@ pub enum Method {
Connect,
/// PATCH
Patch,
/// Method extentions. An example would be `let m = Extension("FOO".to_string())`.
/// Method extensions. An example would be `let m = Extension("FOO".to_string())`.
Extension(String)
}

View File

@@ -91,7 +91,7 @@ impl<'a> Response<'a, Fresh> {
None => ()
};
// cant do in match above, thanks borrowck
// can't do in match above, thanks borrowck
if chunked {
let encodings = match self.headers.get_mut::<header::TransferEncoding>() {
Some(&mut header::TransferEncoding(ref mut encodings)) => {

View File

@@ -3,7 +3,7 @@ use std::fmt;
use std::cmp::Ordering;
// shamelessly lifted from Teepee. I tried a few schemes, this really
// does seem like the best. Improved scheme to support arbitary status codes.
// does seem like the best. Improved scheme to support arbitrary status codes.
/// An HTTP status code (`status-code` in RFC 7230 et al.).
///