summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2023-12-20 17:55:50 -0800
committergit <svn-admin@ruby-lang.org>2024-01-15 14:04:14 +0000
commite0312f90bbf5a6c0af5140ea94c67911515a147b (patch)
treeae31965ba00b473b6617950471ce71fbe7feb01f /lib
parent9c3299896e7ea0aa1d9cc0d4786d7be2908ca9be (diff)
[ruby/pp] Print beginless ranges properly
Instead of displaying the start of the range as nil https://github.com/ruby/pp/commit/1df210d903
Diffstat (limited to 'lib')
-rw-r--r--lib/pp.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pp.rb b/lib/pp.rb
index fb7aa7b41c..f04b7bf0cc 100644
--- a/lib/pp.rb
+++ b/lib/pp.rb
@@ -444,7 +444,7 @@ end if defined?(Data.define)
class Range # :nodoc:
def pretty_print(q) # :nodoc:
- q.pp self.begin
+ q.pp self.begin if self.begin
q.breakable ''
q.text(self.exclude_end? ? '...' : '..')
q.breakable ''