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
2 people authored and makenowjust committed Oct 16, 2020
1 parent f78efd9 commit 1468987
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 1468987

Please sign in to comment.