docs(misc): fix typos caught by codespell
This commit is contained in:
@@ -323,7 +323,7 @@ use new header!() macro.
|
||||
|
||||
#### 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:**
|
||||
* 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))
|
||||
|
||||
@@ -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),
|
||||
|
||||
@@ -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)) => {
|
||||
|
||||
@@ -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),
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)) => {
|
||||
|
||||
@@ -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.).
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user