mirror of
https://github.com/github/semantic.git
synced 2024-11-29 11:02:26 +03:00
Append, don’t subscript.
Subscripting only replaces, never appends.
This commit is contained in:
parent
a9349c33dc
commit
6c8ce1bcb2
@ -10,7 +10,7 @@ public struct Matrix<A> {
|
||||
|
||||
for i in 0..<width {
|
||||
for j in 0..<height {
|
||||
values[i + j * height] = Memo<A> { compute(i, j) }
|
||||
values.append(Memo<A> { compute(i, j) })
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user