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:
parent
4eefb05725
commit
b190f6ef13
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue