Skip to content

Commit

Permalink
Refactor out variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
Sija authored and ysbaddaden committed Apr 5, 2018
1 parent c17ce2d commit b62c4e1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/pretty_print.cr
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,8 @@ class PrettyPrint
@width = 0
end

def output(out, output_width)
@objs.each { |obj| out << obj }
def output(io, output_width)
@objs.each { |obj| io << obj }
output_width + @width
end

Expand All @@ -223,15 +223,15 @@ class PrettyPrint
@group.breakables.push self
end

def output(out, output_width)
def output(io, output_width)
@group.breakables.shift
if @group.break?
out << @pp.newline
@indent.times { out << ' ' }
io << @pp.newline
@indent.times { io << ' ' }
@indent
else
@pp.group_queue.delete @group if @group.breakables.empty?
out << @obj
io << @obj
output_width + @width
end
end
Expand Down

0 comments on commit b62c4e1

Please sign in to comment.