Merge pull request #238 from TheLittleBoy/patch-2

代码编写错误修正
This commit is contained in:
ChildhoodAndy
2014-07-06 14:25:37 +08:00

View File

@ -112,7 +112,7 @@ struct Matrix {
} }
set { set {
assert(indexIsValidForRow(row, column: column), "Index out of range") assert(indexIsValidForRow(row, column: column), "Index out of range")
grid[(row * columns) + columns] = newValue grid[(row * columns) + column] = newValue
} }
} }
} }