From 8945eeda8f88bcbd9c4c97f69bf5fcae3b72f2a3 Mon Sep 17 00:00:00 2001 From: k0kubun Date: Wed, 14 Nov 2018 21:04:57 +0000 Subject: [PATCH] Fix syntax on Binding.irb documentation [ci skip] There was incorrect backticks (`) instead of plus signs to denote method references, and a typo. [Fix GH-2016] From: Olivier Lacan git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65729 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/irb.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/irb.rb b/lib/irb.rb index d077299c2c..f2c7959cae 100644 --- a/lib/irb.rb +++ b/lib/irb.rb @@ -733,12 +733,12 @@ module IRB end class Binding - # Opens an IRB session where `binding.irb` is called which allows for + # Opens an IRB session where +binding.irb+ is called which allows for # interactive debugging. You can call any methods or variables available in # the current scope, and mutate state if you need to. # # - # Given a Ruby file called `potato.rb` containing the following code: + # Given a Ruby file called +potato.rb+ containing the following code: # # class Potato # def initialize @@ -750,7 +750,7 @@ class Binding # # Potato.new # - # Running `ruby potato.rb` will open an IRB session where `binding.irb` is + # Running +ruby potato.rb+ will open an IRB session where +binding.irb+ is # called, and you will see the following: # # $ ruby potato.rb @@ -782,7 +782,7 @@ class Binding # => true # # You can exit the IRB session with the `exit` command. Note that exiting will - # resume execution where +binding.call+ had paused it, as you can see from the + # resume execution where +binding.irb+ had paused it, as you can see from the # output printed to standard output in this example: # # irb(#):005:0> exit