From bd53d0b3541984eea7db01213278ef5f9a67fdef Mon Sep 17 00:00:00 2001 From: IsseW Date: Mon, 16 May 2022 00:06:57 +0200 Subject: [PATCH] fix wrong spelling --- voxygen/src/hud/chat.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/voxygen/src/hud/chat.rs b/voxygen/src/hud/chat.rs index b2222c88ea..db7ca32be0 100644 --- a/voxygen/src/hud/chat.rs +++ b/voxygen/src/hud/chat.rs @@ -678,11 +678,11 @@ impl<'a> Widget for Chat<'a> { fn do_tab_completion(cursor: usize, input: &str, word: &str) -> (String, usize) { let mut pre_ws = None; let mut post_ws = None; - let mut in_qoutation = false; + let mut in_quotation = false; for (char_i, (byte_i, c)) in input.char_indices().enumerate() { if c == '"' { - in_qoutation = !in_qoutation; - } else if !in_qoutation && c.is_whitespace() && c != '\t' { + in_quotation = !in_quotation; + } else if !in_quotation && c.is_whitespace() && c != '\t' { if char_i < cursor { pre_ws = Some(byte_i); } else {