Browse files

rb_ary_reverse does an in-place reverse

Signed-off-by: Tim Felgentreff <timfelgentreff@gmail.com>
  • Loading branch information...
1 parent 56e306d commit 587f140626dc0fb77d5883fef9e8f34ad013f25b @tmm1 committed with timfel Apr 2, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 cext/src/array.cpp
View
2 cext/src/array.cpp
@@ -312,7 +312,7 @@ rb_ary_join(VALUE array1, VALUE array2)
extern "C" VALUE
rb_ary_reverse(VALUE array)
{
- return callMethod(array, "reverse", 0);
+ return callMethod(array, "reverse!", 0);
}
extern "C" VALUE

0 comments on commit 587f140

Please sign in to comment.