From c0f4d2d71251b883519e45d9bf2e0cafa52e552d Mon Sep 17 00:00:00 2001 From: sigoden Date: Thu, 30 May 2024 01:02:11 +0000 Subject: chore: fix typos --- src/function.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/function.rs') diff --git a/src/function.rs b/src/function.rs index a644185..a42b943 100644 --- a/src/function.rs +++ b/src/function.rs @@ -234,7 +234,7 @@ impl ToolCall { let output = if self.is_execute() { if stdout().is_terminal() { println!("{prompt}"); - let anwser = Text::new("[1] Run, [2] Run & Retrieve, [3] Skip:") + let answer = Text::new("[1] Run, [2] Run & Retrieve, [3] Skip:") .with_default("1") .with_validator(|input: &str| match matches!(input, "1" | "2" | "3") { true => Ok(Validation::Valid), @@ -243,7 +243,7 @@ impl ToolCall { )), }) .prompt()?; - match anwser.as_str() { + match answer.as_str() { "1" => { let exit_code = run_command(&name, &[arguments], Some(envs))?; if exit_code != 0 { -- cgit v1.2.3