зеркало из https://github.com/github/ruby.git
Fix sample code [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
0744b375b8
Коммит
2617dfa9bd
2
array.c
2
array.c
|
@ -4350,7 +4350,7 @@ rb_ary_or(VALUE ary1, VALUE ary2)
|
|||
* It compares elements using their #hash and #eql? methods for efficiency.
|
||||
*
|
||||
* [ "a", "b", "c" ].union( [ "c", "d", "a" ] ) #=> [ "a", "b", "c", "d" ]
|
||||
* [ "a" ].union( [ ["e", "b"], ["a", "c", "b"] ] ) #=> [ "a", "e", "b", "c" ]
|
||||
* [ "a" ].union( ["e", "b"], ["a", "c", "b"] ) #=> [ "a", "e", "b", "c" ]
|
||||
* [ "a" ].union #=> [ "a" ]
|
||||
*
|
||||
* See also Array#|.
|
||||
|
|
Загрузка…
Ссылка в новой задаче