aboutsummaryrefslogtreecommitdiffstats
path: root/array.c
diff options
context:
space:
mode:
Diffstat (limited to 'array.c')
-rw-r--r--array.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/array.c b/array.c
index 0ffc9a6a75..3cf5b7ceb3 100644
--- a/array.c
+++ b/array.c
@@ -2828,8 +2828,8 @@ rb_ary_shuffle_bang(VALUE ary)
*
* Returns a new array that with elements of this array shuffled.
*
- * s = [ 1, 2, 3 ] #=> [1, 2, 3]
- * a.shuffle #=> [1, 2, 3]
+ * a = [ 1, 2, 3 ] #=> [1, 2, 3]
+ * a.shuffle #=> [2, 3, 1]
*/
static VALUE