Fix lambda parameters being refered as arguments (GH-7037)
(cherry picked from commit 268cc7c3f8f58075b42ff0cd6b6c6c5d76044895)
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst
index 7fe989b..6b2d6a9 100644
--- a/Doc/reference/expressions.rst
+++ b/Doc/reference/expressions.rst
@@ -1613,12 +1613,12 @@
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