summaryrefslogtreecommitdiff
path: root/array.c
diff options
context:
space:
mode:
authorStefan Schüßler <mail@stefanschuessler.de>2019-02-18 12:44:01 +0100
committerGitHub <noreply@github.com>2019-02-18 12:44:01 +0100
commite19e5d2409e99ef7fd450d317e71e119cb5a4c3a (patch)
tree4374a799cb986f89caf5882b3c87b6a5a1b24857 /array.c
parentbef0c0a3678d07ce40f147051fba092ee30da640 (diff)
Fix return value name in docs for Array#union
Throughout the docs, `new_ary` is used to indicate a new array, whereas `ary` refers to the receiver.
Notes
Notes: Merge branch patch-5 of https://github.com/sos4nt/ruby into trunk [Fix GH-2084]
Diffstat (limited to 'array.c')
-rw-r--r--array.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/array.c b/array.c
index d096347c43..395a6c1854 100644
--- a/array.c
+++ b/array.c
@@ -4683,7 +4683,7 @@ rb_ary_or(VALUE ary1, VALUE ary2)
/*
* call-seq:
- * ary.union(other_ary1, other_ary2, ...) -> ary
+ * ary.union(other_ary1, other_ary2, ...) -> new_ary
*
* Set Union --- Returns a new array by joining <code>other_ary</code>s with +self+,
* excluding any duplicates and preserving the order from the given arrays.