From 8370f3a3b93432c69746544d3546177f888e050c Mon Sep 17 00:00:00 2001 From: Lars Kellogg-Stedman Date: Sun, 19 Jan 2020 10:16:47 -0500 Subject: [PATCH] A minor grammar correction --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7b5c96f..c6220b7 100644 --- a/README.md +++ b/README.md @@ -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 = []