Browse files

Forgot to return the correct item

  • Loading branch information...
1 parent 5258f81 commit 1eafdee80d86544b245273f00171810c0e291707 @komax committed Jul 11, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 bin/ast
View
3 bin/ast
@@ -212,8 +212,9 @@ module IRPrettyPrinter
def self.pretty_ir(scope, indent="")
i = 0
pretty_str = scope.instrs.map do |instr|
- indent + "#{i}\s\s" + instr.to_s
+ f_str = indent + "#{i}\s" + instr.to_s
i += 1
+ f_str
end
pretty_str = [indent + scope.to_s] + pretty_str
scope.lexical_scopes.each do |lex_scope|

0 comments on commit 1eafdee

Please sign in to comment.