Skip to content

Commit

Permalink
Use join
Browse files Browse the repository at this point in the history
  • Loading branch information
Ary Borenszweig committed Oct 6, 2022
1 parent 5cc8f76 commit c3dc983
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/compiler/crystal/syntax/to_s.cr
Original file line number Diff line number Diff line change
Expand Up @@ -1064,8 +1064,7 @@ module Crystal
case node
when Expressions
@str << "("
node.expressions.each_with_index do |exp, j|
@str << ", " if j > 0
node.expressions.join(@str, ", ") do |exp|
visit_unpack exp
end
@str << ")"
Expand Down

0 comments on commit c3dc983

Please sign in to comment.