aboutsummaryrefslogtreecommitdiffstats
path: root/lib/irb/inspector.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/irb/inspector.rb')
-rw-r--r--lib/irb/inspector.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/irb/inspector.rb b/lib/irb/inspector.rb
index bdfa282f0d..ee3b19efdc 100644
--- a/lib/irb/inspector.rb
+++ b/lib/irb/inspector.rb
@@ -98,8 +98,7 @@ module IRB # :nodoc:
puts "An error occurred when inspecting the object: #{e.inspect}"
begin
- # TODO: change this to bind_call when we drop support for Ruby 2.6
- puts "Result of Kernel#inspect: #{KERNEL_INSPECT.bind(v).call}"
+ puts "Result of Kernel#inspect: #{KERNEL_INSPECT.bind_call(v)}"
''
rescue => e
puts "An error occurred when running Kernel#inspect: #{e.inspect}"