Skip to content

Commit

Permalink
review: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
BurntSushi committed Jan 9, 2025
1 parent a6f4ba0 commit 1c92833
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/ruff_linter/src/message/text.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(' ');
Expand Down

0 comments on commit 1c92833

Please sign in to comment.