Skip to content

Commit

Permalink
reformulate comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
hoel-bagard committed Mar 9, 2024
1 parent 6775779 commit c2c3949
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -62,7 +62,7 @@ pub(crate) fn missing_whitespace_after_keyword(
TokenKind::Colon
| TokenKind::Newline
| TokenKind::NonLogicalNewline
| TokenKind::Rpar // In case of a syntax error, do not attempt to fix it.
| TokenKind::Rpar // In case of a syntax error, do not attempt to add a whitespace.
))
&& tok0.end() == tok1.start()
{
Expand Down
Expand Up @@ -159,8 +159,8 @@ pub(crate) fn missing_whitespace_around_operator(
while let Some(token) = tokens.next() {
let kind = token.kind();

// There should not be a ")" directly after a token as it is a syntax error. However if that happens,
// allow it to prevent entering a loop where E225 adds a space only for E202 to remove it.
// There should not be a ")" directly after a token, as it is a syntax error. However if that happens,
// allow it in order to prevent entering a loop where E225 adds a space only for E202 to remove it.
if kind.is_trivia()
|| tokens
.peek()
Expand Down

0 comments on commit c2c3949

Please sign in to comment.