[前][次][番号順一覧][スレッド一覧]

ruby-changes:53513

From: k0kubun <ko1@a...>
Date: Thu, 15 Nov 2018 06:05:04 +0900 (JST)
Subject: [ruby-changes:53513] k0kubun:r65729 (trunk): Fix syntax on Binding.irb documentation [ci skip]

k0kubun	2018-11-15 06:04:57 +0900 (Thu, 15 Nov 2018)

  New Revision: 65729

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65729

  Log:
    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 <hi@o...>

  Modified files:
    trunk/lib/irb.rb
Index: lib/irb.rb
===================================================================
--- lib/irb.rb	(revision 65728)
+++ lib/irb.rb	(revision 65729)
@@ -733,12 +733,12 @@ module IRB https://github.com/ruby/ruby/blob/trunk/lib/irb.rb#L733
 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 https://github.com/ruby/ruby/blob/trunk/lib/irb.rb#L750
   #
   #     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 https://github.com/ruby/ruby/blob/trunk/lib/irb.rb#L782
   #     => 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(#<Potato:0x00007feea1916670>):005:0> exit

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]