docs(misc): fix typos caught by codespell
This commit is contained in:
		| @@ -323,7 +323,7 @@ use new header!() macro. | |||||||
|  |  | ||||||
| #### Features | #### Features | ||||||
|  |  | ||||||
| * **header:** Support arbitary status codes ([73978531](https://github.com/hyperium/hyper/commit/7397853148b8221c0eb8315ae2e5f195ad2e642c)) | * **header:** Support arbitrary status codes ([73978531](https://github.com/hyperium/hyper/commit/7397853148b8221c0eb8315ae2e5f195ad2e642c)) | ||||||
| * **headers:** | * **headers:** | ||||||
|   * Implement PartialOrd for QualityItem ([2859d7ef](https://github.com/hyperium/hyper/commit/2859d7ef4ecadc3927fa46292ebbb225da597690), closes [#314](https://github.com/hyperium/hyper/issues/314)) |   * Implement PartialOrd for QualityItem ([2859d7ef](https://github.com/hyperium/hyper/commit/2859d7ef4ecadc3927fa46292ebbb225da597690), closes [#314](https://github.com/hyperium/hyper/issues/314)) | ||||||
|   * add AcceptLanguage header ([20a585e3](https://github.com/hyperium/hyper/commit/20a585e30bbb060a91839de7e95fd75a95d03d93)) |   * add AcceptLanguage header ([20a585e3](https://github.com/hyperium/hyper/commit/20a585e30bbb060a91839de7e95fd75a95d03d93)) | ||||||
|   | |||||||
| @@ -25,7 +25,7 @@ | |||||||
| //! # use hyper::Client; | //! # use hyper::Client; | ||||||
| //! let mut client = Client::new(); | //! let mut client = Client::new(); | ||||||
| //! | //! | ||||||
| //! let res = client.post("http://exmaple.domain") | //! let res = client.post("http://example.domain") | ||||||
| //!     .body("foo=bar") | //!     .body("foo=bar") | ||||||
| //!     .send() | //!     .send() | ||||||
| //!     .unwrap(); | //!     .unwrap(); | ||||||
| @@ -266,7 +266,7 @@ impl<'a, U: IntoUrl> RequestBuilder<'a, U> { | |||||||
|                 } |                 } | ||||||
|             }; |             }; | ||||||
|             match client.redirect_policy { |             match client.redirect_policy { | ||||||
|                 // separate branches because they cant be one |                 // separate branches because they can't be one | ||||||
|                 RedirectPolicy::FollowAll => (), //continue |                 RedirectPolicy::FollowAll => (), //continue | ||||||
|                 RedirectPolicy::FollowIf(cond) if cond(&url) => (), //continue |                 RedirectPolicy::FollowIf(cond) if cond(&url) => (), //continue | ||||||
|                 _ => return Ok(res), |                 _ => return Ok(res), | ||||||
|   | |||||||
| @@ -106,7 +106,7 @@ impl Request<Fresh> { | |||||||
|                     None => () |                     None => () | ||||||
|                 }; |                 }; | ||||||
|  |  | ||||||
|                 // cant do in match above, thanks borrowck |                 // can't do in match above, thanks borrowck | ||||||
|                 if chunked { |                 if chunked { | ||||||
|                     let encodings = match self.headers.get_mut::<header::TransferEncoding>() { |                     let encodings = match self.headers.get_mut::<header::TransferEncoding>() { | ||||||
|                         Some(&mut header::TransferEncoding(ref mut encodings)) => { |                         Some(&mut header::TransferEncoding(ref mut encodings)) => { | ||||||
|   | |||||||
| @@ -29,7 +29,7 @@ pub enum Error { | |||||||
|     TooLarge, |     TooLarge, | ||||||
|     /// An invalid `Status`, such as `1337 ELITE`. |     /// An invalid `Status`, such as `1337 ELITE`. | ||||||
|     Status, |     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), |     Io(IoError), | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
| @@ -35,7 +35,7 @@ pub enum Method { | |||||||
|     Connect, |     Connect, | ||||||
|     /// PATCH |     /// PATCH | ||||||
|     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) |     Extension(String) | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
| @@ -91,7 +91,7 @@ impl<'a> Response<'a, Fresh> { | |||||||
|             None => () |             None => () | ||||||
|         }; |         }; | ||||||
|  |  | ||||||
|         // cant do in match above, thanks borrowck |         // can't do in match above, thanks borrowck | ||||||
|         if chunked { |         if chunked { | ||||||
|             let encodings = match self.headers.get_mut::<header::TransferEncoding>() { |             let encodings = match self.headers.get_mut::<header::TransferEncoding>() { | ||||||
|                 Some(&mut header::TransferEncoding(ref mut encodings)) => { |                 Some(&mut header::TransferEncoding(ref mut encodings)) => { | ||||||
|   | |||||||
| @@ -3,7 +3,7 @@ use std::fmt; | |||||||
| use std::cmp::Ordering; | use std::cmp::Ordering; | ||||||
|  |  | ||||||
| // shamelessly lifted from Teepee. I tried a few schemes, this really | // 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.). | /// An HTTP status code (`status-code` in RFC 7230 et al.). | ||||||
| /// | /// | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user