diff --git a/src/builtin_parser/runner/environment.rs b/src/builtin_parser/runner/environment.rs index bdbeda0..b30d345 100644 --- a/src/builtin_parser/runner/environment.rs +++ b/src/builtin_parser/runner/environment.rs @@ -349,7 +349,6 @@ impl Environment { let name = name.into(); if self.variables.contains_key(&name) { warn!("Function {name} declared twice."); - } else { } self.variables .insert(name, Variable::Function(function.into_function())); diff --git a/src/ui/completions.rs b/src/ui/completions.rs index 64089ed..7bf491c 100644 --- a/src/ui/completions.rs +++ b/src/ui/completions.rs @@ -28,7 +28,7 @@ pub fn completions( } let cursor_index = (|| { - // Conver the cursor's char index into a byte index + // Convert the cursor's char index into a byte index // aswell as returning the character at the cursor's position position let (primary_index, char) = state .command