From 541e5a976429f0b48beb777eac641dd14c801bd8 Mon Sep 17 00:00:00 2001 From: figsoda Date: Wed, 11 Mar 2026 14:37:01 -0400 Subject: [PATCH] fix(core): typo --- src/cargo/core/package_id_spec.rs | 2 +- tests/testsuite/cargo_tree/deps.rs | 2 +- tests/testsuite/git.rs | 2 +- tests/testsuite/pkgid.rs | 6 +++--- tests/testsuite/replace.rs | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/cargo/core/package_id_spec.rs b/src/cargo/core/package_id_spec.rs index f730246b15b..534729b9213 100644 --- a/src/cargo/core/package_id_spec.rs +++ b/src/cargo/core/package_id_spec.rs @@ -112,7 +112,7 @@ impl PackageIdSpecQuery for PackageIdSpec { return match ids.next() { Some(other) => { let mut msg = format!( - "specificationm `{self}` is ambiguous + "specification `{self}` is ambiguous help: re-run this command with one of the following specifications", ); let mut vec = vec![ret, other]; diff --git a/tests/testsuite/cargo_tree/deps.rs b/tests/testsuite/cargo_tree/deps.rs index 15a9eb94d63..5262469e1b3 100644 --- a/tests/testsuite/cargo_tree/deps.rs +++ b/tests/testsuite/cargo_tree/deps.rs @@ -1631,7 +1631,7 @@ fn ambiguous_name() { [DOWNLOADED] dep v2.0.0 (registry `dummy-registry`) [DOWNLOADED] dep v1.0.0 (registry `dummy-registry`) [DOWNLOADED] bar v1.0.0 (registry `dummy-registry`) -[ERROR] specificationm `dep` is ambiguous +[ERROR] specification `dep` is ambiguous [HELP] re-run this command with one of the following specifications dep@1.0.0 dep@2.0.0 diff --git a/tests/testsuite/git.rs b/tests/testsuite/git.rs index 43698039533..e76c0ccac4f 100644 --- a/tests/testsuite/git.rs +++ b/tests/testsuite/git.rs @@ -2139,7 +2139,7 @@ fn update_ambiguous() { p.cargo("update bar") .with_status(101) .with_stderr_data(str![[r#" -[ERROR] specificationm `bar` is ambiguous +[ERROR] specification `bar` is ambiguous [HELP] re-run this command with one of the following specifications bar@0.5.0 bar@0.6.0 diff --git a/tests/testsuite/pkgid.rs b/tests/testsuite/pkgid.rs index 036a6930b0e..5d2ee9938d4 100644 --- a/tests/testsuite/pkgid.rs +++ b/tests/testsuite/pkgid.rs @@ -163,7 +163,7 @@ registry+https://github.com/rust-lang/crates.io-index#two-ver@0.2.0 p.cargo("pkgid two-ver@0") .with_status(101) .with_stderr_data(str![[r#" -[ERROR] specificationm `two-ver@0` is ambiguous +[ERROR] specification `two-ver@0` is ambiguous [HELP] re-run this command with one of the following specifications two-ver@0.1.0 two-ver@0.2.0 @@ -183,7 +183,7 @@ registry+https://github.com/rust-lang/crates.io-index#two-ver@0.2.0 p.cargo("pkgid two-ver") .with_status(101) .with_stderr_data(str![[r#" -[ERROR] specificationm `two-ver` is ambiguous +[ERROR] specification `two-ver` is ambiguous [HELP] re-run this command with one of the following specifications two-ver@0.1.0 two-ver@0.2.0 @@ -278,7 +278,7 @@ foo v0.1.0 ([ROOT]/foo) p.cargo("pkgid xyz") .with_status(101) .with_stderr_data(str![[r#" -[ERROR] specificationm `xyz` is ambiguous +[ERROR] specification `xyz` is ambiguous [HELP] re-run this command with one of the following specifications git+[ROOTURL]/xyz?rev=[..]#0.5.0 git+[ROOTURL]/xyz?rev=[..]#0.5.0 diff --git a/tests/testsuite/replace.rs b/tests/testsuite/replace.rs index 4c62e598da2..e75c86ac122 100644 --- a/tests/testsuite/replace.rs +++ b/tests/testsuite/replace.rs @@ -868,7 +868,7 @@ fn test_override_dep() { [UPDATING] `dummy-registry` index [UPDATING] git repository `[ROOTURL]/override` [LOCKING] 2 packages to latest compatible versions -[ERROR] specificationm `bar` is ambiguous +[ERROR] specification `bar` is ambiguous [HELP] re-run this command with one of the following specifications registry+https://github.com/rust-lang/crates.io-index#bar@0.1.0 git+[ROOTURL]/override#bar@0.1.0