Skip to content

Commit b39d4ce

Browse files
committed
Update 2d List Tutorial
FIxes jdf/Processing.py-Bugs#259
1 parent 17a34e9 commit b39d4ce

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎Tutorials/2dlists/index.html‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ <h1>Two-Dimensional Lists</h1>
155155
</p>
156156
<img src="imgs/cells.jpg">
157157
<pre>
158-
<a href="http://www.learningprocessing.com/examples/chapter-13/example-13-10/">Example: 2D Array of Objects</a>
158+
<a href="http://learningprocessing.com/examples/chp13/example-13-10-grid-cells">Example: 2D Array of Objects</a>
159159
# Number of columns and rows in the grid
160160
nCols = 10;
161161
nRows = 10;
@@ -183,7 +183,7 @@ <h1>Two-Dimensional Lists</h1>
183183
def makeGrid():
184184
global nCols, nRows
185185
grid = []
186-
for i in xrange(nRows):
186+
for i in xrange(nCols):
187187
# Create an empty list for each row
188188
grid.append([])
189189
for j in xrange(nRows):

0 commit comments

Comments
 (0)