We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f780525 commit ea1542eCopy full SHA for ea1542e
src/main/ruby/truffleruby/core/range.rb
@@ -375,12 +375,10 @@ def ===(value)
375
def inspect
376
sep = exclude_end? ? '...' : '..'
377
if (Primitive.nil?(self.begin) && Primitive.nil?(self.end))
378
- result = "nil#{sep}nil"
+ "nil#{sep}nil"
379
else
380
- result = (Primitive.nil?(self.begin) ? '' : self.begin.inspect) + sep +
381
- (Primitive.nil?(self.end) ? '' : self.end.inspect)
+ (Primitive.nil?(self.begin) ? '' : self.begin.inspect) + sep + (Primitive.nil?(self.end) ? '' : self.end.inspect)
382
end
383
- Primitive.infect(result, self)
384
385
386
def last(n=undefined)
0 commit comments