Skip to content

Commit 501f0ed

Browse files
committed
Fix times symbol
1 parent 1e29f92 commit 501f0ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Array2D/README.markdown

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ In C and Objective-C you can write this,
44

55
int cookies[9][7];
66

7-
to make a 9⨉7 grid of cookies. This would create a two-dimensional array of 63 elements. To find the cookie at column 3, row 6, you'd write:
7+
to make a 9x7 grid of cookies. This would create a two-dimensional array of 63 elements. To find the cookie at column 3, row 6, you'd write:
88

99
myCookie = cookies[3][6];
1010

@@ -100,6 +100,6 @@ Thanks to the `subscript` function, you can do the following to retrieve an obje
100100
let myCookie = cookies[column, row]
101101
```
102102

103-
Internally, `Array2D` uses a single one-dimensional array to store the data. The index of an object in that array is given by `(row numberOfColumns) + column`. But as a user of `Array2D` you don't have to worry about that; you only have to think in terms of "column" and "row", and let `Array2D` figure out the details for you. That's the advantage of wrapping primitive types into a wrapper class or struct.
103+
Internally, `Array2D` uses a single one-dimensional array to store the data. The index of an object in that array is given by `(row x numberOfColumns) + column`. But as a user of `Array2D` you don't have to worry about that; you only have to think in terms of "column" and "row", and let `Array2D` figure out the details for you. That's the advantage of wrapping primitive types into a wrapper class or struct.
104104

105105
And that's all there is to it.

0 commit comments

Comments
 (0)