mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
* Doc/tut.tex (subsection{Lambda Forms}): fix typo in lambda
example
This commit is contained in:
parent
275b0a44d5
commit
c1be9d59e4
2 changed files with 2 additions and 2 deletions
|
|
@ -2864,7 +2864,7 @@ overcome through the judicious use of default argument values, e.g.
|
|||
|
||||
\begin{verbatim}
|
||||
def make_incrementor(n):
|
||||
return lambda(x, incr=n): x+incr
|
||||
return lambda x, incr=n: x+incr
|
||||
\end{verbatim}
|
||||
|
||||
\subsection{Map, Reduce and Filter}
|
||||
|
|
|
|||
|
|
@ -2864,7 +2864,7 @@ overcome through the judicious use of default argument values, e.g.
|
|||
|
||||
\begin{verbatim}
|
||||
def make_incrementor(n):
|
||||
return lambda(x, incr=n): x+incr
|
||||
return lambda x, incr=n: x+incr
|
||||
\end{verbatim}
|
||||
|
||||
\subsection{Map, Reduce and Filter}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue