Skip to content

Commit e74ccb7

Browse files
authored
Merge pull request satwikkansal#176 from larsks/fix/grammar
A minor grammar correction
2 parents daf156a + 8370f3a commit e74ccb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1023,7 +1023,7 @@ Even when the values of `x` were different in every iteration prior to appending
10231023
10241024
- 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.
10251025
1026-
- 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.
1026+
- 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.
10271027
10281028
```py
10291029
funcs = []

0 commit comments

Comments
 (0)