diff --git a/src/expressions/call-expr.md b/src/expressions/call-expr.md index 1e2ad8518..fc4777faf 100644 --- a/src/expressions/call-expr.md +++ b/src/expressions/call-expr.md @@ -1,5 +1,12 @@ # Call expressions +> **Syntax** +> _CallExpression_ : +>    [_Expression_] `(` _CallParams_? `)` +> +> _CallParams_ : +>    [_Expression_] ( `,` [_Expression_] )\* `,`? + A _call expression_ consists of an expression followed by a parenthesized expression-list. It invokes a function, providing zero or more input variables. If the function eventually returns, then the expression completes. For @@ -87,3 +94,5 @@ fn main() { Refer to [RFC 132] for further details and motivations. [RFC 132]: https://github.com/rust-lang/rfcs/blob/master/text/0132-ufcs.md + +[_Expression_]: expressions.html