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

ruby-changes:11687

From: knu <ko1@a...>
Date: Sat, 2 May 2009 22:54:28 +0900 (JST)
Subject: [ruby-changes:11687] Ruby:r23326 (trunk): * lib/set.rb (SortedSet): Fix document. [Bug #1429]

knu	2009-05-02 22:54:09 +0900 (Sat, 02 May 2009)

  New Revision: 23326

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

  Log:
    * lib/set.rb (SortedSet): Fix document. [Bug #1429]

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

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 23325)
+++ ChangeLog	(revision 23326)
@@ -1,3 +1,7 @@
+Sat May  2 22:53:02 2009  Akinori MUSHA  <knu@i...>
+
+	* lib/set.rb (SortedSet): Fix document. [Bug #1429]
+
 Sat May  2 10:34:29 2009  NARUSE, Yui  <naruse@r...>
 
 	* enc/trans/utf8_mac-tbl.rb: don't use Unicode escape.
Index: lib/set.rb
===================================================================
--- lib/set.rb	(revision 23325)
+++ lib/set.rb	(revision 23326)
@@ -468,7 +468,7 @@
 # 
 #   require "set"
 #   
-#   set = SortedSet.new(2, 1, 5, 6, 4, 5, 3, 3, 3)
+#   set = SortedSet.new([2, 1, 5, 6, 4, 5, 3, 3, 3])
 #   ary = []
 #   
 #   set.each do |obj|
@@ -477,7 +477,7 @@
 #   
 #   p ary # => [1, 2, 3, 4, 5, 6]
 #   
-#   set2 = SortedSet.new(1, 2, "3")
+#   set2 = SortedSet.new([1, 2, "3"])
 #   set2.each { |obj| } # => raises ArgumentError: comparison of Fixnum with String failed
 #   
 class SortedSet < Set

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

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