зеркало из https://github.com/github/ruby.git
Fix indent of output in doc [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64930 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
e889fad86c
Коммит
1c7d334800
2
array.c
2
array.c
|
@ -4234,7 +4234,7 @@ rb_ary_diff(VALUE ary1, VALUE ary2)
|
|||
*
|
||||
* It compares elements using their #hash and #eql? methods for efficiency.
|
||||
*
|
||||
* [ 1, 1, 2, 2, 3, 3, 4, 5 ].difference([ 1, 2, 4 ]) #=> [ 3, 3, 5 ]
|
||||
* [ 1, 1, 2, 2, 3, 3, 4, 5 ].difference([ 1, 2, 4 ]) #=> [ 3, 3, 5 ]
|
||||
* [ 1, 'c', :s, 'yep' ].difference([ 1 ], [ 'a', 'c' ]) #=> [:s, "yep"]
|
||||
*
|
||||
* If you need set-like behavior, see the library class Set.
|
||||
|
|
Загрузка…
Ссылка в новой задаче