summaryrefslogtreecommitdiffstats
path: root/Doc/reference/compound_stmts.rst
diff options
context:
space:
mode:
authorChris Jerdonek <chris.jerdonek@gmail.com>2012-10-26 00:21:22 (GMT)
committerChris Jerdonek <chris.jerdonek@gmail.com>2012-10-26 00:21:22 (GMT)
commitc131b0760d9d9c478e3dad0240040d75793c652d (patch)
tree90bb756834abd358b04d75997b018329434041f0 /Doc/reference/compound_stmts.rst
parent76464494bc1a6779cc4839a28238fb7ea4104a5a (diff)
downloadcpython-c131b0760d9d9c478e3dad0240040d75793c652d.zip
cpython-c131b0760d9d9c478e3dad0240040d75793c652d.tar.gz
cpython-c131b0760d9d9c478e3dad0240040d75793c652d.tar.bz2
Fix formatting of syntax description of function definition.
Diffstat (limited to 'Doc/reference/compound_stmts.rst')
-rw-r--r--Doc/reference/compound_stmts.rst3
1 files changed, 1 insertions, 2 deletions
diff --git a/Doc/reference/compound_stmts.rst b/Doc/reference/compound_stmts.rst
index 003224b..6889176 100644
--- a/Doc/reference/compound_stmts.rst
+++ b/Doc/reference/compound_stmts.rst
@@ -442,8 +442,7 @@ A function definition defines a user-defined function object (see section
decorator: "@" `dotted_name` ["(" [`parameter_list` [","]] ")"] NEWLINE
dotted_name: `identifier` ("." `identifier`)*
parameter_list: (`defparameter` ",")*
- : ( "*" [`parameter`] ("," `defparameter`)*
- : [, "**" `parameter`]
+ : ( "*" [`parameter`] ("," `defparameter`)* ["," "**" `parameter`]
: | "**" `parameter`
: | `defparameter` [","] )
parameter: `identifier` [":" `expression`]