]> git.proxmox.com Git - cargo.git/commitdiff
NFC: fix a couple of typos, found by codespell.
authorMatthias Krüger <matthias.krueger@famsik.de>
Fri, 11 May 2018 14:54:23 +0000 (16:54 +0200)
committerMatthias Krüger <matthias.krueger@famsik.de>
Fri, 11 May 2018 14:54:23 +0000 (16:54 +0200)
src/cargo/core/compiler/mod.rs
src/cargo/core/package_id_spec.rs
src/cargo/core/resolver/types.rs
src/cargo/core/summary.rs
src/cargo/ops/cargo_compile.rs

index 3353c2e49cd793fbbdcd469d5b034d9424f40501..6d5241e0c9c29d5816a17211896b9c399db1d806 100644 (file)
@@ -642,7 +642,7 @@ fn rustdoc<'a, 'cfg>(cx: &mut Context<'a, 'cfg>, unit: &Unit<'a>) -> CargoResult
 // if you literally move the whole project wholesale to a new directory. As a
 // result we mostly don't factor in `cwd` to this calculation. Instead we try to
 // track the workspace as much as possible and we update the current directory
-// of rustc/rustdoc where approrpriate.
+// of rustc/rustdoc where appropriate.
 //
 // The first returned value here is the argument to pass to rustc, and the
 // second is the cwd that rustc should operate in.
index 43dd9683d6b01fd2fbf5b9435ca81273ba96e8f1..8acc65401b67f87bedce4c930c94e6a93824bf3b 100644 (file)
@@ -158,7 +158,7 @@ impl PackageIdSpec {
         self.url = Some(url);
     }
 
-    /// Checkes whether the given `PackageId` matches the `PackageIdSpec`.
+    /// Checks whether the given `PackageId` matches the `PackageIdSpec`.
     pub fn matches(&self, package_id: &PackageId) -> bool {
         if self.name() != &*package_id.name() {
             return false;
index 1190121dae4ecf0621d270af5f5f9e66b9299717..f555d77fb999854f4b57aaa269156b714c5b5f28 100644 (file)
@@ -15,7 +15,7 @@ pub struct RegistryQueryer<'a> {
     cache: HashMap<Dependency, Rc<Vec<Candidate>>>,
     // If set the list of dependency candidates will be sorted by minimal
     // versions first. That allows `cargo update -Z minimal-versions` which will
-    // specify minimum depedency versions to be used.
+    // specify minimum dependency versions to be used.
     minimal_versions: bool,
 }
 
@@ -283,7 +283,7 @@ pub enum ConflictReason {
 
     /// A dependency listed features that weren't actually available on the
     /// candidate. For example we tried to activate feature `foo` but the
-    /// candidiate we're activating didn't actually have the feature `foo`.
+    /// candidate we're activating didn't actually have the feature `foo`.
     MissingFeatures(String),
 }
 
index b7c36d8dd68fe446443026825d7d69f47fd0c5d6..bd08ffcdacb81643d94875ca68d9abcb86637eed 100644 (file)
@@ -323,7 +323,7 @@ fn build_feature_map(
 ///
 /// * Another feature
 /// * An optional dependency
-/// * A feature in a depedency
+/// * A feature in a dependency
 ///
 /// The selection between these 3 things happens as part of the construction of the FeatureValue.
 #[derive(Clone, Debug)]
index 62732e5b1693da80afbe4c72264456677c6b5f10..3d5fa2c535f14e1552f62f98538f6344522284fe 100644 (file)
@@ -170,7 +170,7 @@ pub fn compile<'a>(
     compile_with_exec(ws, options, Arc::new(DefaultExecutor))
 }
 
-/// Like `compile` but allows specifing a custom `Executor` that will be able to intercept build
+/// Like `compile` but allows specifying a custom `Executor` that will be able to intercept build
 /// calls and add custom logic. `compile` uses `DefaultExecutor` which just passes calls through.
 pub fn compile_with_exec<'a>(
     ws: &Workspace<'a>,