Skip to content

Commit 93c4d9b

Browse files
committed
Two minor changes to writing/gotchas.
1 parent e7f0d1f commit 93c4d9b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/writing/gotchas.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ signal that no argument was provided (:py:data:`None` is often a good choice).
7979
When the Gotcha Isn't a Gotcha
8080
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8181

82-
Sometimes you specifically can "exploit" (read: use as intended) this behavior
82+
Sometimes you can specifically "exploit" (read: use as intended) this behavior
8383
to maintain state between calls of a function. This is often done when writing
8484
a caching function.
8585

@@ -126,7 +126,7 @@ What Does Happen
126126
8
127127
8
128128

129-
Five functions are created, but all of them just multiply ``x`` by 4.
129+
Five functions are created; instead all of them just multiply ``x`` by 4.
130130

131131
Python's closures are *late binding*.
132132
This means that the values of variables used in closures are looked

0 commit comments

Comments
 (0)