diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-12-03 01:39:45 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-12-03 01:39:45 +0000 |
commit | 2c840bbfef2d6a06282f3698548f95ef85819ca7 (patch) | |
tree | ee3c0dd66ce6ce373af589e7251ec85d08fc6200 /lib/pp.rb | |
parent | afa685398e6c098a55bb2d0565e8f1bd380e4ab9 (diff) | |
download | ruby-2c840bbfef2d6a06282f3698548f95ef85819ca7.tar.gz |
lib/pp.rb (Range#pretty_print): support endless range
`pp(1..)` should print `"(1..)"` instead of `"(1..nil)"`.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66143 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/pp.rb')
-rw-r--r-- | lib/pp.rb | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -386,7 +386,7 @@ class Range # :nodoc: q.breakable '' q.text(self.exclude_end? ? '...' : '..') q.breakable '' - q.pp self.end + q.pp self.end if self.end end end |