diff options
| author | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-05-02 13:54:09 +0000 |
|---|---|---|
| committer | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-05-02 13:54:09 +0000 |
| commit | 7d8615882a1ee4f624fe7efaf829dbb5c73a098b (patch) | |
| tree | e3818978d8795968a66185b0d29f036a4c2dac30 /lib | |
| parent | e635f397d46de84556e6a6f663d46945d991e4fc (diff) | |
| download | ruby-7d8615882a1ee4f624fe7efaf829dbb5c73a098b.tar.gz ruby-7d8615882a1ee4f624fe7efaf829dbb5c73a098b.tar.xz ruby-7d8615882a1ee4f624fe7efaf829dbb5c73a098b.zip | |
* lib/set.rb (SortedSet): Fix document. [Bug #1429]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23326 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/set.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/set.rb b/lib/set.rb index 5be2bce76..6d298d3f8 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 |
