From 0cf3a2289e35ce43f47e1dd15a6502ea8e2fdfcc Mon Sep 17 00:00:00 2001 From: JohnTheCoolingFan <43478602+JohnTheCoolingFan@users.noreply.github.com> Date: Mon, 3 Apr 2023 21:06:29 +0300 Subject: [PATCH] Fix typo in variable name --- src/cargo/ops/cargo_new.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/cargo/ops/cargo_new.rs b/src/cargo/ops/cargo_new.rs index 0e432e2fe4c..caa1d2fa8cc 100644 --- a/src/cargo/ops/cargo_new.rs +++ b/src/cargo/ops/cargo_new.rs @@ -514,31 +514,31 @@ pub fn init(opts: &NewOptions, config: &Config) -> CargoResult { let mut version_control = opts.version_control; if version_control == None { - let mut num_detected_vsces = 0; + let mut num_detected_vcses = 0; if path.join(".git").exists() { version_control = Some(VersionControl::Git); - num_detected_vsces += 1; + num_detected_vcses += 1; } if path.join(".hg").exists() { version_control = Some(VersionControl::Hg); - num_detected_vsces += 1; + num_detected_vcses += 1; } if path.join(".pijul").exists() { version_control = Some(VersionControl::Pijul); - num_detected_vsces += 1; + num_detected_vcses += 1; } if path.join(".fossil").exists() { version_control = Some(VersionControl::Fossil); - num_detected_vsces += 1; + num_detected_vcses += 1; } // if none exists, maybe create git, like in `cargo new` - if num_detected_vsces > 1 { + if num_detected_vcses > 1 { anyhow::bail!( "more than one of .hg, .git, .pijul, .fossil configurations \ found and the ignore file can't be filled in as \