Skip to content

Commit 5a02f0d

Browse files
committed
docs: typos
1 parent c7af44a commit 5a02f0d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

docs/source/geometry.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ We also use pyrr for vector/matrix math/representation.
3232
This was benchmarked generating various vertex formats with 1M vertices.
3333
For fairly small data sizes doesn't matter that much.
3434

35-
The naive way to generate geometry would probably look something like this:
35+
The naive way of generating geometry would probably look something like this:
3636

3737
.. code-block:: python
3838
@@ -66,10 +66,9 @@ We move on to version 2:
6666
.. code-block:: python
6767
6868
def random_points(count):
69-
# Pre-allocate a list containing zeros of length count
70-
# We multiply by 3 to make room for a x, y and z value
69+
# Pre-allocate a list containing zeros of length count * 3
7170
points = [0] * count * 3
72-
# Loop count time incrementing by 3 every frame
71+
# Loop count times incrementing by 3 every frame
7372
for p in range(0, count * 3, 3):
7473
# Let's pretend we calculated random values for x, y, z
7574
points[p] = x

0 commit comments

Comments
 (0)