Skip to content

Commit

Permalink
Update src/compiler/crystal/tools/formatter.cr
Browse files Browse the repository at this point in the history
Co-authored-by: Sijawusz Pur Rahnama <sija@sija.pl>
  • Loading branch information
asterite and Sija authored Sep 11, 2020
1 parent 75c4dec commit 6528950
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/compiler/crystal/tools/formatter.cr
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,8 @@ module Crystal
@indent += 2
write_line
next_token
# Cornor case: an empty `begin ... end`.
# In this case, we should not skip space becuase it will do in the below loop.
# Corner case: an empty `begin ... end`.
# In this case, we should not skip space because it will do in the below loop.
unless node.expressions.size == 1 && node.expressions[0].is_a?(Nop)
skip_space_or_newline
if @token.type == :";"
Expand Down

0 comments on commit 6528950

Please sign in to comment.