Skip to content

Commit

Permalink
Remove Primitive.infect from Range#inspect
Browse files Browse the repository at this point in the history
  • Loading branch information
Lillian Zhang committed Nov 28, 2020
1 parent b07bcf0 commit c3cdb10
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/main/ruby/truffleruby/core/range.rb
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,6 @@ def inspect
result = (Primitive.nil?(self.begin) ? '' : self.begin.inspect) + sep +
(Primitive.nil?(self.end) ? '' : self.end.inspect)
end
Primitive.infect(result, self)
end

def last(n=undefined)
Expand Down

0 comments on commit c3cdb10

Please sign in to comment.