1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23326 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
knu 2009-05-02 13:54:09 +00:00
parent f207f9fd51
commit 92c89f12fb
2 changed files with 6 additions and 2 deletions

View file

@ -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> Sat May 2 10:34:29 2009 NARUSE, Yui <naruse@ruby-lang.org>
* enc/trans/utf8_mac-tbl.rb: don't use Unicode escape. * enc/trans/utf8_mac-tbl.rb: don't use Unicode escape.

View file

@ -468,7 +468,7 @@ end
# #
# require "set" # 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 = [] # ary = []
# #
# set.each do |obj| # set.each do |obj|
@ -477,7 +477,7 @@ end
# #
# p ary # => [1, 2, 3, 4, 5, 6] # 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 # set2.each { |obj| } # => raises ArgumentError: comparison of Fixnum with String failed
# #
class SortedSet < Set class SortedSet < Set