A minor grammar correction

This commit is contained in:
Lars Kellogg-Stedman 2020-01-19 10:16:47 -05:00
parent de113d2491
commit 8370f3a3b9
1 changed files with 1 additions and 1 deletions

2
README.md vendored
View File

@ -1023,7 +1023,7 @@ Even when the values of `x` were different in every iteration prior to appending
- When defining a function inside a loop that uses the loop variable in its body, the loop function's closure is bound to the variable, not its value. So all of the functions use the latest value assigned to the variable for computation.
- To get the desired behavior you can pass in the loop variable as a named variable to the function. **Why this works?** Because this will define the variable again within the function's scope.
- To get the desired behavior you can pass in the loop variable as a named variable to the function. **Why does this work?** Because this will define the variable again within the function's scope.
```py
funcs = []