diff --git a/crates/ruff_linter/src/message/text.rs b/crates/ruff_linter/src/message/text.rs index 9784a5e269b58..24e0787aa35ba 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(' ');