Skip to content

Commit db1553d

Browse files
authored
Merge pull request #281 from seanangio/patch-1
Fix typo in generator explanation
2 parents 13806bb + 2b5abec commit db1553d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

03-spatial-operations.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -822,7 +822,7 @@ The technical terms *iterable*, *iterator*, and *generator* in Python may be con
822822
* A *generator* is a function that returns an iterator. For example, the `.sample` method in the above example is a generator. The **rasterio** package makes use of generators in some of its functions, as we will see later on (@sec-raster-to-polygons).
823823
:::
824824

825-
In case we nevertheless want all values at once, such as when the number of points is small, we can force the generatrion of all values from a generator at once, using `list`.
825+
In case we nevertheless want all values at once, such as when the number of points is small, we can force the generation of all values from a generator at once, using `list`.
826826
Since there was just one point, the result is one extracted value, in this case `16`.
827827

828828
```{python}

0 commit comments

Comments
 (0)