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

ruby-changes:26414

From: marcandre <ko1@a...>
Date: Wed, 19 Dec 2012 18:06:00 +0900 (JST)
Subject: [ruby-changes:26414] marcandRe: r38465 (trunk): * doc/syntax/methods.rdoc: rdoc fix, patch by Dave Brown

marcandre	2012-12-19 18:05:44 +0900 (Wed, 19 Dec 2012)

  New Revision: 38465

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

  Log:
    * doc/syntax/methods.rdoc: rdoc fix, patch by Dave Brown
    [github:222]

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

Index: doc/syntax/methods.rdoc
===================================================================
--- doc/syntax/methods.rdoc	(revision 38464)
+++ doc/syntax/methods.rdoc	(revision 38465)
@@ -68,8 +68,8 @@ Arguments may have default values: https://github.com/ruby/ruby/blob/trunk/doc/syntax/methods.rdoc#L68
     a + b
   end
 
-The default value does not need to appear first, but the must be grouped
-together.  This is ok:
+The default value does not need to appear first, but arguments with defaults
+must be grouped together.  This is ok:
 
   def add_values(a = 1, b = 2, c)
     a + b + c

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

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