diff --git a/lib/pry/pry_class.rb b/lib/pry/pry_class.rb index d38a7210..2fd2fac5 100644 --- a/lib/pry/pry_class.rb +++ b/lib/pry/pry_class.rb @@ -174,7 +174,7 @@ class Pry elsif Pry.config.prompt_safe_objects.any? { |v| v === obj } && obj.inspect.length <= max_length obj.inspect else - "#<#{obj.class}>:%x>" % (obj.object_id << 1) + "#<#{obj.class}:0x%x>" % (obj.object_id << 1) end rescue RescuableException