From d3e05d588eab2f0dc013f988bf7c0784b601da95 Mon Sep 17 00:00:00 2001 From: VitalikButerinEth Date: Thu, 30 May 2024 16:28:40 +0800 Subject: [PATCH] chore: fix some comments Signed-off-by: VitalikButerinEth --- src/cargo/core/compiler/job_queue/mod.rs | 2 +- src/cargo/ops/resolve.rs | 2 +- src/cargo/sources/source.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cargo/core/compiler/job_queue/mod.rs b/src/cargo/core/compiler/job_queue/mod.rs index e36faa12fff..e6fccc7bd11 100644 --- a/src/cargo/core/compiler/job_queue/mod.rs +++ b/src/cargo/core/compiler/job_queue/mod.rs @@ -1050,7 +1050,7 @@ impl<'gctx> DrainState<'gctx> { if unit.is_local() { // Do not show this if there are any errors or no fixable warnings if let FixableWarnings::Positive(fixable) = count.fixable { - // `cargo fix` doesnt have an option for custom builds + // `cargo fix` doesn't have an option for custom builds if !unit.target.is_custom_build() { // To make sure the correct command is shown for `clippy` we // check if `RUSTC_WORKSPACE_WRAPPER` is set and pointing towards diff --git a/src/cargo/ops/resolve.rs b/src/cargo/ops/resolve.rs index 1ce91ea530a..1b54bbc2745 100644 --- a/src/cargo/ops/resolve.rs +++ b/src/cargo/ops/resolve.rs @@ -899,7 +899,7 @@ fn register_patch_entries( } /// Locks each `[replace]` entry to a specific Package ID -/// if the lockfile contains any correspoding previous replacement. +/// if the lockfile contains any corresponding previous replacement. fn lock_replacements( ws: &Workspace<'_>, previous: Option<&Resolve>, diff --git a/src/cargo/sources/source.rs b/src/cargo/sources/source.rs index b3dec06b435..461a0008e1d 100644 --- a/src/cargo/sources/source.rs +++ b/src/cargo/sources/source.rs @@ -184,7 +184,7 @@ pub enum QueryKind { /// whereas an `Registry` source may return dependencies that have the same /// canonicalization. Alternatives, - /// Match a denpendency in all ways and will normalize the package name. + /// Match a dependency in all ways and will normalize the package name. /// Each source defines what normalizing means. Normalized, }