Skip to content

Commit

Permalink
ruff_python_formatter: fix typo in code
Browse files Browse the repository at this point in the history
When I renamed `line` to `trimmed`, I forgot one.

(Previously, I had rebound `line`, and I think that made
these sorts of bugs impossible.)

This regression is covered by new tests for Markdown supported
in a subsequent commit.
  • Loading branch information
BurntSushi committed Dec 6, 2023
1 parent ee6548d commit 13a45b7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1306,7 +1306,7 @@ fn indentation_trim(indent_len: TextSize, line: &str) -> &str {
break;
}
}
line
trimmed
}

/// Returns the indentation of the given line and everything following it.
Expand Down

0 comments on commit 13a45b7

Please sign in to comment.