From 456d62224e58f4395fb26fb09817bfe37c2574f1 Mon Sep 17 00:00:00 2001 From: Nils <52573120+niStee@users.noreply.github.com> Date: Sat, 13 Sep 2025 17:12:39 +0200 Subject: [PATCH] chore: fix simple typos in code and comments (split var, whether, Extensions) (#1318) Co-authored-by: niStee <52573120+niStee@users.noreply.github.comclear> --- src/main.rs | 6 +++--- src/step.rs | 2 +- src/steps/os/unix.rs | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main.rs b/src/main.rs index e318ce75..ef4cff19 100644 --- a/src/main.rs +++ b/src/main.rs @@ -97,9 +97,9 @@ fn run() -> Result<()> { } for env in opt.env_variables() { - let mut splitted = env.split('='); - let var = splitted.next().unwrap(); - let value = splitted.next().unwrap(); + let mut parts = env.split('='); + let var = parts.next().unwrap(); + let value = parts.next().unwrap(); env::set_var(var, value); } diff --git a/src/step.rs b/src/step.rs index 4bbd476a..1ed6a44f 100644 --- a/src/step.rs +++ b/src/step.rs @@ -309,7 +309,7 @@ impl Step { Gem => runner.execute(*self, "gem", || generic::run_gem(ctx))?, Ghcup => runner.execute(*self, "ghcup", || generic::run_ghcup_update(ctx))?, GitRepos => runner.execute(*self, "Git Repositories", || git::run_git_pull(ctx))?, - GithubCliExtensions => runner.execute(*self, "GitHub CLI Extenstions", || { + GithubCliExtensions => runner.execute(*self, "GitHub CLI Extensions", || { generic::run_ghcli_extensions_upgrade(ctx) })?, GnomeShellExtensions => diff --git a/src/steps/os/unix.rs b/src/steps/os/unix.rs index aa2f602e..eb82aef8 100644 --- a/src/steps/os/unix.rs +++ b/src/steps/os/unix.rs @@ -677,7 +677,7 @@ pub fn run_nix_helper(ctx: &ExecutionContext) -> Result<()> { }; // We assume that if the user has set these variables, we can throw an error if nh cannot find - // a flake there. So we do not anymore perform an eval check to find out wether we should skip + // a flake there. So we do not anymore perform an eval check to find out whether we should skip // or not. #[cfg(target_os = "macos")] if darwin_flake_path.is_some() || fallback_flake_path.is_some() {