summaryrefslogtreecommitdiff
path: root/doc/yue-en.md
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2026-02-24 18:01:46 +0800
committerLi Jin <dragon-fly@qq.com>2026-02-24 18:01:46 +0800
commit61bb3f1c6682dcaa05c67b60d3fd0d50e44e0761 (patch)
treea52bc64c86ee3bc732740869ebd73083885329fc /doc/yue-en.md
parent8f3462669e8d536c841d3ce07bfed5432cb379bc (diff)
downloadyuescript-0.33.5.tar.gz
yuescript-0.33.5.tar.bz2
yuescript-0.33.5.zip
Fixed issue #246.v0.33.5
Diffstat (limited to 'doc/yue-en.md')
-rw-r--r--doc/yue-en.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/yue-en.md b/doc/yue-en.md
index a82ae9a..2cac78a 100644
--- a/doc/yue-en.md
+++ b/doc/yue-en.md
@@ -15,6 +15,8 @@ do
15print var -- nil here 15print var -- nil here
16``` 16```
17 17
18YueScript's **do** can also be used an expression. Allowing you to combine multiple lines into one. The result of the do expression is the last statement in its body.
19
18```yuescript 20```yuescript
19counter = do 21counter = do
20 i = 0 22 i = 0
@@ -34,8 +36,6 @@ tbl = {
34} 36}
35``` 37```
36 38
37YueScript's **do** can also be used an expression . Allowing you to combine multiple lines into one. The result of the do expression is the last statement in its body.
38
39`do` expressions also support using `break` to interrupt control flow and return multiple values early: 39`do` expressions also support using `break` to interrupt control flow and return multiple values early:
40 40
41```yuescript 41```yuescript