Skip to content

Commit 69252ba

Browse files
authored
Merge pull request #140 from brauliobz/grammar_return_expr
Return expression grammar
2 parents 764a573 + 07eed14 commit 69252ba

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/expressions/return-expr.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# `return` expressions
22

3+
> **<sup>Syntax</sup>**
4+
> _ReturnExpression_ :
5+
> &nbsp;&nbsp; `return` [_Expression_]<sup>?</sup>
6+
37
Return expressions are denoted with the keyword `return`. Evaluating a `return`
48
expression moves its argument into the designated output location for the
59
current function call, destroys the current function activation frame, and
@@ -15,3 +19,5 @@ fn max(a: i32, b: i32) -> i32 {
1519
return b;
1620
}
1721
```
22+
23+
[_Expression_]: expressions.html

0 commit comments

Comments
 (0)