aboutsummaryrefslogtreecommitdiffstats
path: root/array.c
diff options
context:
space:
mode:
Diffstat (limited to 'array.c')
-rw-r--r--array.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/array.c b/array.c
index 55cdd9d7e3..a0cfb214a4 100644
--- a/array.c
+++ b/array.c
@@ -5717,7 +5717,8 @@ rb_ary_dig(int argc, VALUE *argv, VALUE self)
* ["a", "b", "c"].sum("") #=> "abc"
* [[1], [[2]], [3]].sum([]) #=> [1, [2], 3]
*
- * However, Array#join and Array#flatten is faster than Array#sum.
+ * However, Array#join and Array#flatten is faster than Array#sum for
+ * array of strings and array of arrays.
*
* ["a", "b", "c"].join #=> "abc"
* [[1], [[2]], [3]].flatten(1) #=> [1, [2], 3]