diff --git a/source/chapter2/12_Subscripts.md b/source/chapter2/12_Subscripts.md index c699a500..2bca9399 100755 --- a/source/chapter2/12_Subscripts.md +++ b/source/chapter2/12_Subscripts.md @@ -112,7 +112,7 @@ struct Matrix { } set { assert(indexIsValidForRow(row, column: column), "Index out of range") - grid[(row * columns) + columns] = newValue + grid[(row * columns) + column] = newValue } } }