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

ruby-changes:33198

From: zzak <ko1@a...>
Date: Thu, 6 Mar 2014 15:16:39 +0900 (JST)
Subject: [ruby-changes:33198] zzak:r45277 (trunk): * doc/syntax/assignment.rdoc: [DOC] Fix assignment directions [ci skip]

zzak	2014-03-06 15:16:35 +0900 (Thu, 06 Mar 2014)

  New Revision: 45277

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

  Log:
    * doc/syntax/assignment.rdoc: [DOC] Fix assignment directions [ci skip]
      By @idupree [Fixes GH-555] https://github.com/ruby/ruby/pull/555

  Modified files:
    trunk/ChangeLog
    trunk/doc/syntax/assignment.rdoc
Index: doc/syntax/assignment.rdoc
===================================================================
--- doc/syntax/assignment.rdoc	(revision 45276)
+++ doc/syntax/assignment.rdoc	(revision 45277)
@@ -374,7 +374,7 @@ assigning.  This is similar to multiple https://github.com/ruby/ruby/blob/trunk/doc/syntax/assignment.rdoc#L374
 
   p a # prints [1, 2, 3]
 
-You can splat anywhere in the left-hand side of the assignment:
+You can splat anywhere in the right-hand side of the assignment:
 
   a = 1, *[2, 3]
 
@@ -382,7 +382,7 @@ You can splat anywhere in the left-hand https://github.com/ruby/ruby/blob/trunk/doc/syntax/assignment.rdoc#L382
 
 == Multiple Assignment
 
-You can assign multiple values on the left-hand side to multiple variables:
+You can assign multiple values on the right-hand side to multiple variables:
 
   a, b = 1, 2
 
@@ -408,8 +408,8 @@ You can use multiple assignment to swap https://github.com/ruby/ruby/blob/trunk/doc/syntax/assignment.rdoc#L408
   p new_value: new_value, old_value: old_value
   # prints {:new_value=>1, :old_value=>2}
 
-If you have more values on the left hand side of the assignment than variables
-on the right hand side the extra values are ignored:
+If you have more values on the right hand side of the assignment than variables
+on the left hand side the extra values are ignored:
 
   a, b = 1, 2, 3
 
@@ -422,7 +422,7 @@ the assignment. https://github.com/ruby/ruby/blob/trunk/doc/syntax/assignment.rdoc#L422
 
   p a: a, b: b # prints {:a=>1, :b=>[2, 3]}
 
-The <code>*</code> can appear anywhere on the right-hand side:
+The <code>*</code> can appear anywhere on the left-hand side:
 
   *a, b = 1, 2, 3
 
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 45276)
+++ ChangeLog	(revision 45277)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu Mar  6 15:15:24 2014  Zachary Scott  <e@z...>
+
+	* doc/syntax/assignment.rdoc: [DOC] Fix assignment directions
+	  By @idupree [Fixes GH-555] https://github.com/ruby/ruby/pull/555
+
 Thu Mar  6 15:07:18 2014  Zachary Scott  <e@z...>
 
 	* doc/syntax/methods.rdoc: [DOC] Fix example for block arguments

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

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