Skip to content

Commit 775b218

Browse files
author
Jacob
authored
Update curry.rst
Fix typo
1 parent c32d700 commit 775b218

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/source/curry.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ higher order function from ``functools``. Currying provides syntactic sugar.
88
.. code::
99
1010
>>> double = partial(mul, 2) # Partial evaluation
11-
>>> double = mul(2) # Currying
11+
>>> doubled = double(2) # Currying
1212
1313
This syntactic sugar is valuable when developers chain several higher order
1414
functions together.

0 commit comments

Comments
 (0)