Skip to content

Commit 2eac22e

Browse files
committed
better foobar
1 parent 6ba2dda commit 2eac22e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

defining-functions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,11 @@ However, modifying a global variable in-place from a function is easy.
152152
```py
153153
>>> foo = ['global foo']
154154
>>> def bar():
155-
... foo.append('bar foo')
155+
... foo.append('local foo')
156156
...
157157
>>> bar()
158158
>>> foo
159-
['global foo', 'bar foo']
159+
['global foo', 'local foo']
160160
>>>
161161
```
162162

0 commit comments

Comments
 (0)