diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | lib/set.rb | 4 |
2 files changed, 6 insertions, 2 deletions
@@ -1,3 +1,7 @@ +Sat May 2 22:53:02 2009 Akinori MUSHA <knu@iDaemons.org> + + * lib/set.rb (SortedSet): Fix document. [Bug #1429] + Sat May 2 10:34:29 2009 NARUSE, Yui <naruse@ruby-lang.org> * enc/trans/utf8_mac-tbl.rb: don't use Unicode escape. diff --git a/lib/set.rb b/lib/set.rb index 5be2bce76a..6d298d3f85 100644 --- a/lib/set.rb +++ b/lib/set.rb @@ -468,7 +468,7 @@ end # # 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 @@ end # # 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 |