We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 764a573 + 07eed14 commit 69252baCopy full SHA for 69252ba
src/expressions/return-expr.md
@@ -1,5 +1,9 @@
1
# `return` expressions
2
3
+> **<sup>Syntax</sup>**
4
+> _ReturnExpression_ :
5
+> `return` [_Expression_]<sup>?</sup>
6
+
7
Return expressions are denoted with the keyword `return`. Evaluating a `return`
8
expression moves its argument into the designated output location for the
9
current function call, destroys the current function activation frame, and
@@ -15,3 +19,5 @@ fn max(a: i32, b: i32) -> i32 {
15
19
return b;
16
20
}
17
21
```
22
23
+[_Expression_]: expressions.html
0 commit comments