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

ruby-changes:33197

From: zzak <ko1@a...>
Date: Thu, 6 Mar 2014 15:08:44 +0900 (JST)
Subject: [ruby-changes:33197] zzak:r45276 (trunk): * doc/syntax/methods.rdoc: [DOC] Fix example for block arguments [ci skip]

zzak	2014-03-06 15:08:40 +0900 (Thu, 06 Mar 2014)

  New Revision: 45276

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45276

  Log:
    * doc/syntax/methods.rdoc: [DOC] Fix example for block arguments [ci skip]
      By @idupree [Fixes GH-554] https://github.com/ruby/ruby/pull/554

  Modified files:
    trunk/ChangeLog
    trunk/doc/syntax/methods.rdoc
Index: doc/syntax/methods.rdoc
===================================================================
--- doc/syntax/methods.rdoc	(revision 45275)
+++ doc/syntax/methods.rdoc	(revision 45276)
@@ -383,7 +383,7 @@ arguments must appear before any keyword https://github.com/ruby/ruby/blob/trunk/doc/syntax/methods.rdoc#L383
 The block argument is indicated by <code>&</code> and must come last:
 
   def my_method(&my_block)
-    my_method.call(self)
+    my_block.call(self)
   end
 
 Most frequently the block argument is used to pass a block to another method:
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 45275)
+++ ChangeLog	(revision 45276)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu Mar  6 15:07:18 2014  Zachary Scott  <e@z...>
+
+	* doc/syntax/methods.rdoc: [DOC] Fix example for block arguments
+	  By @idupree [Fixes GH-554] https://github.com/ruby/ruby/pull/554
+
 Thu Mar  6 10:33:31 2014  Martin Bosslet  <Martin.Bosslet@g...>
 
 	* lib/openssl/ssl.rb: Explicitly whitelist the default

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

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