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

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

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42264 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
knu 2013-07-31 05:58:14 +00:00
parent d950ffe5f5
commit b426f8ebb5
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Wed Jul 31 14:38:52 2013 Akinori MUSHA <knu@iDaemons.org>
* lib/set.rb: [DOC] Fix example result. Hash is now ordered.
Wed Jul 31 14:38:10 2013 Akinori MUSHA <knu@iDaemons.org>
* lib/set.rb: [DOC] Use the term "sorted" instead "ordered" when

View file

@ -49,7 +49,7 @@
# 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
#