Skip to content

Commit 0eeab6d

Browse files
committed
Closure
1 parent ed9ceea commit 0eeab6d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -536,8 +536,7 @@ from functools import partial
536536
```
537537

538538
```python
539-
>>> from operator import mul
540-
>>> multiply_by_3 = partial(mul, 3)
539+
>>> multiply_by_3 = partial(operator.mul, 3)
541540
>>> multiply_by_3(10)
542541
30
543542
```

0 commit comments

Comments
 (0)