aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-09-21 08:53:11 +0000
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-09-21 08:53:11 +0000
commita087e0f5a1dc9f7ba2b43fd2cf4ebfb683ac7f7e (patch)
treef1eed24206d48a9c87bedf8743462ba1830aadf0
parent5ced1d921bcb3ac2649eabefe22012a820a10989 (diff)
downloadruby-a087e0f5a1dc9f7ba2b43fd2cf4ebfb683ac7f7e.tar.gz
Fix sample code [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--array.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/array.c b/array.c
index c58b316525..7aeec160f6 100644
--- a/array.c
+++ b/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#|.