Fix bug in find_indices.

This commit is contained in:
Danila Fedorin 2020-12-07 22:49:03 -08:00
parent 15e94c0286
commit aae61f796d
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ class Array(T)
end
def find_indices
into = [] of T
into = [] of Int32
each_with_index do |v, i|
into << i if yield v
end