aboutsummaryrefslogtreecommitdiffhomepage
path: root/site
diff options
context:
space:
mode:
authorGravatar vladmos <vladmos@google.com>2018-02-02 09:18:38 -0800
committerGravatar Copybara-Service <copybara-piper@google.com>2018-02-02 09:20:38 -0800
commit4656b8486e036712c6d703e8b3e9a6ac08080862 (patch)
tree9591843be89db0937b119227836ac6175d384a1c /site
parent90eb3b6c991470e2eafb9ee92a4fda2a2fb6b94a (diff)
Fix the Skylark specification
Return statements can exist without an expression. PiperOrigin-RevId: 184291539
Diffstat (limited to 'site')
-rw-r--r--site/docs/skylark/spec.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/site/docs/skylark/spec.md b/site/docs/skylark/spec.md
index 096dfdd9ba..322e9130a3 100644
--- a/site/docs/skylark/spec.md
+++ b/site/docs/skylark/spec.md
@@ -1997,7 +1997,7 @@ A `return` statement ends the execution of a function and returns a
value to the caller of the function.
```text
-ReturnStmt = 'return' Expression .
+ReturnStmt = 'return' [Expression] .
```
A return statement may have zero, one, or more
@@ -3192,7 +3192,7 @@ SmallStmt = ReturnStmt
| LoadStmt
.
-ReturnStmt = 'return' Expression .
+ReturnStmt = 'return' [Expression] .
BreakStmt = 'break' .
ContinueStmt = 'continue' .
PassStmt = 'pass' .