From c51286055f319916fc85c55c334ef3baa9541cab Mon Sep 17 00:00:00 2001 From: TheLittleBoy Date: Sat, 28 Jun 2014 10:53:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E7=BC=96=E5=86=99=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将columns修改为column --- source/chapter2/12_Subscripts.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } } }