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

ruby-changes:26408

From: drbrain <ko1@a...>
Date: Wed, 19 Dec 2012 15:24:12 +0900 (JST)
Subject: [ruby-changes:26408] drbrain:r38459 (trunk): * doc/syntax/methods.rdoc: Add () around keyword arguments example for

drbrain	2012-12-19 15:24:02 +0900 (Wed, 19 Dec 2012)

  New Revision: 38459

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

  Log:
    * doc/syntax/methods.rdoc:  Add () around keyword arguments example for
      consistency.  Thanks to Josh Susser.

  Modified files:
    trunk/ChangeLog
    trunk/doc/syntax/methods.rdoc

Index: doc/syntax/methods.rdoc
===================================================================
--- doc/syntax/methods.rdoc	(revision 38458)
+++ doc/syntax/methods.rdoc	(revision 38459)
@@ -85,7 +85,7 @@ This will raise a SyntaxError: https://github.com/ruby/ruby/blob/trunk/doc/syntax/methods.rdoc#L85
 
 Keyword arguments are similar to positional arguments with default values:
 
-  def add_values first: 1, second: 2
+  def add_values(first: 1, second: 2)
     first + second
   end
 
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 38458)
+++ ChangeLog	(revision 38459)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Dec 19 15:23:50 2012  Eric Hodel  <drbrain@s...>
+
+	* doc/syntax/methods.rdoc:  Add () around keyword arguments example for
+	  consistency.  Thanks to Josh Susser.
+
 Wed Dec 19 01:51:24 2012  CHIKANAGA Tomoyuki  <nagachika@r...>
 
 	* vm.c (rb_vm_jump_tag_but_local_jump): remove unnecessary 2nd

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

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