From 1c928339f523ebb3a4bc50173bef8640fcb56eae Mon Sep 17 00:00:00 2001 From: Andrew Gallant Date: Thu, 9 Jan 2025 07:45:35 -0500 Subject: [PATCH] review: fix typo --- crates/ruff_linter/src/message/text.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ruff_linter/src/message/text.rs b/crates/ruff_linter/src/message/text.rs index 9784a5e269b584..24e0787aa35bac 100644 --- a/crates/ruff_linter/src/message/text.rs +++ b/crates/ruff_linter/src/message/text.rs @@ -327,7 +327,7 @@ fn replace_whitespace_and_unprintable(source: &str, annotation_range: TextRange) if matches!(c, '\t') { let tab_width = u32::try_from(line_width.get() - old_width) - .expect("small width because of tab sisze"); + .expect("small width because of tab size"); result.push_str(&source[last_end..index]); for _ in 0..tab_width { result.push(' ');