From 2c840bbfef2d6a06282f3698548f95ef85819ca7 Mon Sep 17 00:00:00 2001 From: mame Date: Mon, 3 Dec 2018 01:39:45 +0000 Subject: [PATCH] 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 --- lib/pp.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pp.rb b/lib/pp.rb index ad0391c012..cbc49e72e9 100644 --- a/lib/pp.rb +++ b/lib/pp.rb @@ -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