Skip to content

Commit c0540f7

Browse files
committed
Fix tip message
1 parent 817c2cb commit c0540f7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/cargo/util/command_prelude.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ pub trait CommandExt: Sized {
119119
actual: &'static str,
120120
) -> Self {
121121
let msg = format!(
122-
"There is no `--{want}` for `cargo {command}`. Only `--{actual}` is supported."
122+
"there is no `--{want}` for `cargo {command}`. Only `--{actual}` is supported."
123123
);
124124
let value_parser = UnknownArgumentValueParser::suggest(msg);
125125
self._arg(flag(want, "").value_parser(value_parser).hide(true))

tests/testsuite/build.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ fn cargo_compile_with_unsupported_mode() {
147147
"\
148148
error: unexpected argument '--debug' found
149149
150-
tip: There is no `--debug` for `cargo build`. Only `--release` is supported.
150+
tip: there is no `--debug` for `cargo build`. Only `--release` is supported.
151151
152152
Usage: cargo[EXE] build [OPTIONS]
153153

tests/testsuite/install.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2453,7 +2453,7 @@ fn install_with_unsupported_mode() {
24532453
"\
24542454
error: unexpected argument '--release' found
24552455
2456-
tip: There is no `--release` for `cargo install`. Only `--debug` is supported.
2456+
tip: there is no `--release` for `cargo install`. Only `--debug` is supported.
24572457
24582458
Usage: cargo[EXE] install [OPTIONS] [crate]...
24592459

0 commit comments

Comments
 (0)