summaryrefslogtreecommitdiffstats
path: root/Doc/reference
diff options
context:
space:
mode:
authorAndrés Delfino <adelfino@gmail.com>2018-05-22 05:57:45 (GMT)
committerJulien Palard <julien@palard.fr>2018-05-22 05:57:45 (GMT)
commit268cc7c3f8f58075b42ff0cd6b6c6c5d76044895 (patch)
tree97cd8e5e91c834be319048b8f3e3e0d4dd494e70 /Doc/reference
parentb7555babe95ee0db2f1224ec53cfe68a005448a1 (diff)
downloadcpython-268cc7c3f8f58075b42ff0cd6b6c6c5d76044895.zip
cpython-268cc7c3f8f58075b42ff0cd6b6c6c5d76044895.tar.gz
cpython-268cc7c3f8f58075b42ff0cd6b6c6c5d76044895.tar.bz2
Fix lambda parameters being refered as arguments (GH-7037)
Diffstat (limited to 'Doc/reference')
-rw-r--r--Doc/reference/expressions.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst
index e5af927..222b897 100644
--- a/Doc/reference/expressions.rst
+++ b/Doc/reference/expressions.rst
@@ -1608,12 +1608,12 @@ Lambdas
lambda_expr_nocond: "lambda" [`parameter_list`]: `expression_nocond`
Lambda expressions (sometimes called lambda forms) are used to create anonymous
-functions. The expression ``lambda arguments: expression`` yields a function
+functions. The expression ``lambda parameters: expression`` yields a function
object. The unnamed object behaves like a function object defined with:
.. code-block:: none
- def <lambda>(arguments):
+ def <lambda>(parameters):
return expression
See section :ref:`function` for the syntax of parameter lists. Note that