Skip to content

Commit 4238f68

Browse files
committed
fix(install): More consistently refer to SemVer
1 parent 3d2f371 commit 4238f68

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/bin/cargo/commands/install.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ fn parse_semver_flag(v: &str) -> CargoResult<VersionReq> {
261261
// requirement, add a note to the warning
262262
if v.parse::<VersionReq>().is_ok() {
263263
msg.push_str(&format!(
264-
"\n\n tip: if you want to specify semver range, \
264+
"\n\n tip: if you want to specify SemVer range, \
265265
add an explicit qualifier, like '^{}'",
266266
v
267267
));

tests/testsuite/install_upgrade.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ fn ambiguous_version_no_longer_allowed() {
232232
"\
233233
[ERROR] invalid value '1.0' for '--version <VERSION>': cannot parse '1.0' as a semver
234234
235-
tip: if you want to specify semver range, add an explicit qualifier, like '^1.0'
235+
tip: if you want to specify SemVer range, add an explicit qualifier, like '^1.0'
236236
237237
For more information, try '--help'.
238238
",

0 commit comments

Comments
 (0)