mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-18 02:10:30 +00:00
Tiny doc update: var is not an expression. (#812)
This commit is contained in:
1 parent
3d1716f6c6
commit
0fec34df03
1 file changed
+2
-2
@@ -89,8 +89,8 @@ When a variable is marked as `returned`, it must be the only `returned` value
|
||||
in-scope.
|
||||
|
||||
If a `returned var` is returned, the specific syntax `return var` must be used.
|
||||
Returning other expressions is not allowed while a `returned var` is in scope.
|
||||
For example:
|
||||
Returning expressions is not allowed while a `returned var` is in scope. For
|
||||
example:
|
||||
|
||||
```carbon
|
||||
fn MakeCircle(radius: Int) -> Circle {
|
||||
|
||||
Reference in new issue
Block a user