summaryrefslogtreecommitdiff
path: root/array.c
diff options
context:
space:
mode:
authoreregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-04 16:16:36 +0000
committereregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-04 16:16:36 +0000
commited318080ade5159a0b1d99acbd22950bf16e9841 (patch)
treea4a777ee3dc48cfa698f460a15d508907f171c5c /array.c
parentee9c279e9b001f905c04fd4bd87e7a0878a95107 (diff)
* array.c (Array#+): fix documentation example.
Patch by Logan Serman. [Fixes GH-324] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'array.c')
-rw-r--r--array.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/array.c b/array.c
index fffbfc509e..beee4da324 100644
--- a/array.c
+++ b/array.c
@@ -3357,8 +3357,9 @@ rb_ary_fill(int argc, VALUE *argv, VALUE ary)
*
* [ 1, 2, 3 ] + [ 4, 5 ] #=> [ 1, 2, 3, 4, 5 ]
* a = [ "a", "b", "c" ]
- * a + [ "d", "e", "f" ]
- * a #=> [ "a", "b", "c", "d", "e", "f" ]
+ * c = a + [ "d", "e", "f" ]
+ * c #=> [ "a", "b", "c", "d", "e", "f" ]
+ * a #=> [ "a", "b", "c" ]
*
* See also Array#concat.
*/