fix typos caught by codespell

This commit is contained in:
Tshepang Lekhonkhobe 2015-05-06 02:05:41 +02:00
parent aa8ee2dfcc
commit 74076d2a04
7 changed files with 8 additions and 8 deletions

View file

@ -5,7 +5,7 @@ use util::{CargoResult, Fresh, Dirty, Freshness};
pub struct Job { dirty: Work, fresh: Work }
/// Each proc should send its description before starting.
/// It should send either once or close immediatly.
/// It should send either once or close immediately.
pub struct Work {
inner: Box<FnBox<Sender<String>, CargoResult<()>> + Send>,
}

View file

@ -198,7 +198,7 @@ impl<'a> JobQueue<'a> {
Ok(())
}
// This isn't super trivial becuase we don't want to print loads and
// This isn't super trivial because we don't want to print loads and
// loads of information to the console, but we also want to produce a
// faithful representation of what's happening. This is somewhat nuanced
// as a package can start compiling *very* early on because of custom

View file

@ -316,7 +316,7 @@ impl<'a, 'b> RegistrySource<'a, 'b> {
// TODO: don't download into memory (curl-rust doesn't expose it)
let resp = try!(handle.get(url.to_string()).follow_redirects(true).exec());
if resp.get_code() != 200 && resp.get_code() != 0 {
return Err(internal(format!("Failed to get 200 reponse from {}\n{}",
return Err(internal(format!("Failed to get 200 response from {}\n{}",
url, resp)))
}

View file

@ -5,7 +5,7 @@ use std::path::Path;
/// A helper structure to represent the modification time of a file.
///
/// The actual value contined within is platform-specific and does not have the
/// The actual value contained within is platform-specific and does not have the
/// same meaning across platforms, but comparisons and stringification can be
/// significant among platforms.
#[derive(Eq, PartialEq, Ord, PartialOrd, Debug, Copy, Clone)]

View file

@ -251,7 +251,7 @@ fn handle(response: result::Result<http::Response, curl::ErrCode>)
impl fmt::Display for Error {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
match *self {
Error::NonUtf8Body => write!(f, "reponse body was not utf-8"),
Error::NonUtf8Body => write!(f, "response body was not utf-8"),
Error::Curl(ref err) => write!(f, "http error: {}", err),
Error::NotOkResponse(ref resp) => {
write!(f, "failed to get a 200 OK response: {}", resp)

View file

@ -68,7 +68,7 @@ test!(bench_tarname {
let expected_stdout = format!("\
{compiling} foo v0.0.1 ({dir})
{runnning} target[..]release[..]bin2[..]
{running} target[..]release[..]bin2[..]
running 1 test
test run2 ... bench: 0 ns/iter (+/- 0)
@ -77,7 +77,7 @@ test result: ok. 0 passed; 0 failed; 0 ignored; 1 measured
",
compiling = COMPILING,
runnning = RUNNING,
running = RUNNING,
dir = prj.url());
assert_that(prj.cargo_process("bench").arg("--bench").arg("bin2"),

View file

@ -225,7 +225,7 @@ test!(cargo_compile_git_dep_tag {
"#)
}).unwrap();
// Make a tag correponding to the current HEAD
// Make a tag corresponding to the current HEAD
let repo = git2::Repository::open(&git_project.root()).unwrap();
let head = repo.head().unwrap().target().unwrap();
repo.tag("v0.1.0",