Skip to content

Commit 47a30bb

Browse files
author
Nicolas Laurent
committed
make array/flatten-recursive micro benchmark compatible with JRuby
1 parent 41a40f6 commit 47a30bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bench/micro/array/flatten-recursive.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
current_array = array
1111
100.times do
1212
next_array = []
13-
current_array.append(0, 1, next_array, 3, 4)
13+
current_array.concat [0, 1, next_array, 3 , 4]
1414
current_array = next_array
1515
end
1616

0 commit comments

Comments
 (0)