diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/matrix.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/matrix.rb b/lib/matrix.rb index a008182c42..3f27bcaeef 100644 --- a/lib/matrix.rb +++ b/lib/matrix.rb @@ -1170,7 +1170,7 @@ class Vector def collect2(v) # :yield: e1, e2 Vector.Raise ErrDimensionMismatch if size != v.size return to_enum(:collect2, v) unless block_given? - (0 ... size).collect do |i| + size.times.collect do |i| yield @elements[i], v[i] end end |