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

ruby-changes:30213

From: knu <ko1@a...>
Date: Wed, 31 Jul 2013 14:58:33 +0900 (JST)
Subject: [ruby-changes:30213] knu:r42264 (trunk): * lib/set.rb: [DOC] Fix example result. Hash is now ordered.

knu	2013-07-31 14:58:14 +0900 (Wed, 31 Jul 2013)

  New Revision: 42264

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

  Log:
    * lib/set.rb: [DOC] Fix example result.  Hash is now ordered.

  Modified files:
    trunk/ChangeLog
    trunk/lib/set.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 42263)
+++ ChangeLog	(revision 42264)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Jul 31 14:38:52 2013  Akinori MUSHA  <knu@i...>
+
+	* lib/set.rb: [DOC] Fix example result.  Hash is now ordered.
+
 Wed Jul 31 14:38:10 2013  Akinori MUSHA  <knu@i...>
 
 	* lib/set.rb: [DOC] Use the term "sorted" instead "ordered" when
Index: lib/set.rb
===================================================================
--- lib/set.rb	(revision 42263)
+++ lib/set.rb	(revision 42264)
@@ -49,7 +49,7 @@ https://github.com/ruby/ruby/blob/trunk/lib/set.rb#L49
 #   s2 = [1, 2].to_set                    # -> #<Set: {1, 2}>
 #   s1 == s2                              # -> true
 #   s1.add("foo")                         # -> #<Set: {1, 2, "foo"}>
-#   s1.merge([2, 6])                      # -> #<Set: {6, 1, 2, "foo"}>
+#   s1.merge([2, 6])                      # -> #<Set: {1, 2, "foo", 6}>
 #   s1.subset? s2                         # -> false
 #   s2.subset? s1                         # -> true
 #

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

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