diff options
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 |
