Skip to content

Commit 5a5c7e8

Browse files
committed
Auto merge of #11931 - JohnTheCoolingFan:master, r=ehuss
Fix typo in variable name Just fixes a typo in a variable name (it was "vsces" instead of "vcses", derived from VCS, meaning Version Control System).
2 parents 8e11d86 + 0cf3a22 commit 5a5c7e8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/cargo/ops/cargo_new.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -514,31 +514,31 @@ pub fn init(opts: &NewOptions, config: &Config) -> CargoResult<NewProjectKind> {
514514
let mut version_control = opts.version_control;
515515

516516
if version_control == None {
517-
let mut num_detected_vsces = 0;
517+
let mut num_detected_vcses = 0;
518518

519519
if path.join(".git").exists() {
520520
version_control = Some(VersionControl::Git);
521-
num_detected_vsces += 1;
521+
num_detected_vcses += 1;
522522
}
523523

524524
if path.join(".hg").exists() {
525525
version_control = Some(VersionControl::Hg);
526-
num_detected_vsces += 1;
526+
num_detected_vcses += 1;
527527
}
528528

529529
if path.join(".pijul").exists() {
530530
version_control = Some(VersionControl::Pijul);
531-
num_detected_vsces += 1;
531+
num_detected_vcses += 1;
532532
}
533533

534534
if path.join(".fossil").exists() {
535535
version_control = Some(VersionControl::Fossil);
536-
num_detected_vsces += 1;
536+
num_detected_vcses += 1;
537537
}
538538

539539
// if none exists, maybe create git, like in `cargo new`
540540

541-
if num_detected_vsces > 1 {
541+
if num_detected_vcses > 1 {
542542
anyhow::bail!(
543543
"more than one of .hg, .git, .pijul, .fossil configurations \
544544
found and the ignore file can't be filled in as \

0 commit comments

Comments
 (0)