1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/matrix] Fix a typo in a error message

This commit is contained in:
universato 2021-04-15 02:13:42 +09:00 committed by Marc-Andre Lafortune
parent 4eefb05725
commit b190f6ef13

View file

@ -379,7 +379,7 @@ class Matrix
end end
private def set_value(row, col, value) private def set_value(row, col, value)
raise ErrDimensionMismatch, "Expected a a value, got a #{value.class}" if value.respond_to?(:to_matrix) raise ErrDimensionMismatch, "Expected a value, got a #{value.class}" if value.respond_to?(:to_matrix)
@rows[row][col] = value @rows[row][col] = value
end end