Skip to content

Commit 840b83a

Browse files
authored
chore: fix some minor issues in comments (#15787)
### What does this PR try to resolve? fix some minor issues in comments ### How to test and review this PR? No need.
2 parents 37eeab7 + cbef1d1 commit 840b83a

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/cargo/core/profiles.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -623,10 +623,10 @@ pub struct Profile {
623623
pub incremental: bool,
624624
pub panic: PanicStrategy,
625625
pub strip: Strip,
626-
#[serde(skip_serializing_if = "Vec::is_empty")] // remove when `rustflags` is stablized
626+
#[serde(skip_serializing_if = "Vec::is_empty")] // remove when `rustflags` is stabilized
627627
// Note that `rustflags` is used for the cargo-feature `profile_rustflags`
628628
pub rustflags: Vec<InternedString>,
629-
// remove when `-Ztrim-paths` is stablized
629+
// remove when `-Ztrim-paths` is stabilized
630630
#[serde(skip_serializing_if = "Option::is_none")]
631631
pub trim_paths: Option<TomlTrimPaths>,
632632
#[serde(skip_serializing_if = "Option::is_none")]

src/cargo/ops/vendor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ fn sync(
293293
registry.unpack_package_in(id, staging_dir.path(), &vendor_this)?;
294294
if let Err(e) = fs::rename(&unpacked_src, &dst) {
295295
// This fallback is mainly for Windows 10 versions earlier than 1607.
296-
// The destination of `fs::rename` can't be a diretory in older versions.
296+
// The destination of `fs::rename` can't be a directory in older versions.
297297
// Can be removed once the minimal supported Windows version gets bumped.
298298
tracing::warn!("failed to `mv {unpacked_src:?} {dst:?}`: {e}");
299299
let paths: Vec<_> = walkdir(&unpacked_src).map(|e| e.into_path()).collect();

src/cargo/util/semver_eval_ext.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ mod matches_prerelease_semantic {
384384

385385
#[test]
386386
fn test_less_upper_bound() {
387-
// Lower bound without prerelase tag, so upper bound equivalent to <I.J.K-0
387+
// Lower bound without prerelease tag, so upper bound equivalent to <I.J.K-0
388388
for r in &[
389389
req(">1.2.3, <2"),
390390
req(">1.2.3, <2.0"),
@@ -396,7 +396,7 @@ mod matches_prerelease_semantic {
396396
assert_match_none(r, &["2.0.0-0", "2.0.0", "2.1.2"]);
397397
}
398398

399-
// Lower bound has prerelase tag, so upper bound doesn't change.
399+
// Lower bound has prerelease tag, so upper bound doesn't change.
400400
for r in &[
401401
req(">1.2.3-0, <2"),
402402
req(">1.2.3-0, <2.0"),

tests/build-std/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ trait BuildStd: Sized {
4848
///
4949
/// The environment is not isolated is to avoid excessive network requests
5050
/// and downloads. A side effect is `[BLOCKING]` will show up in stderr,
51-
/// as a sign of package cahce lock contention when running other build-std
51+
/// as a sign of package cache lock contention when running other build-std
5252
/// tests concurrently.
5353
fn build_std(&mut self) -> &mut Self;
5454

0 commit comments

Comments
 (0)