Skip to content

Commit 0a76cf2

Browse files
authored
fix mistake (#32)
1 parent c7dd85e commit 0a76cf2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1085,6 +1085,7 @@ The proper way to have mutable default values is:
10851085
#good:)
10861086
def add_to(element, to=None):
10871087
if to is None:
1088+
to = {}
10881089
to['a'] = element
10891090
return to
10901091
```

0 commit comments

Comments
 (0)