chore: fix some comments

Signed-off-by: VitalikButerinEth <csyingyu@126.com>
This commit is contained in:
VitalikButerinEth 2024-05-30 16:28:40 +08:00
parent 2c8d176e60
commit d3e05d588e
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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>,

View File

@ -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,
}