diff options
| author | Li Jin <dragon-fly@qq.com> | 2026-02-24 18:01:46 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2026-02-24 18:01:46 +0800 |
| commit | 61bb3f1c6682dcaa05c67b60d3fd0d50e44e0761 (patch) | |
| tree | a52bc64c86ee3bc732740869ebd73083885329fc /doc/yue-en.md | |
| parent | 8f3462669e8d536c841d3ce07bfed5432cb379bc (diff) | |
| download | yuescript-61bb3f1c6682dcaa05c67b60d3fd0d50e44e0761.tar.gz yuescript-61bb3f1c6682dcaa05c67b60d3fd0d50e44e0761.tar.bz2 yuescript-61bb3f1c6682dcaa05c67b60d3fd0d50e44e0761.zip | |
Fixed issue #246.v0.33.5
Diffstat (limited to 'doc/yue-en.md')
| -rw-r--r-- | doc/yue-en.md | 4 |
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 | |||
| 15 | print var -- nil here | 15 | print var -- nil here |
| 16 | ``` | 16 | ``` |
| 17 | 17 | ||
| 18 | YueScript'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 |
| 19 | counter = do | 21 | counter = do |
| 20 | i = 0 | 22 | i = 0 |
| @@ -34,8 +36,6 @@ tbl = { | |||
| 34 | } | 36 | } |
| 35 | ``` | 37 | ``` |
| 36 | 38 | ||
| 37 | YueScript'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 |
