diff options
Diffstat (limited to 'doc/docs/zh')
| -rw-r--r-- | doc/docs/zh/doc/destructuring-assignment.md | 2 | ||||
| -rw-r--r-- | doc/docs/zh/doc/macro.md | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/doc/docs/zh/doc/destructuring-assignment.md b/doc/docs/zh/doc/destructuring-assignment.md index 205a1ff..29219d3 100644 --- a/doc/docs/zh/doc/destructuring-assignment.md +++ b/doc/docs/zh/doc/destructuring-assignment.md | |||
| @@ -80,7 +80,7 @@ obj2 = { | |||
| 80 | } | 80 | } |
| 81 | } | 81 | } |
| 82 | 82 | ||
| 83 | {numbers: [first, second]} = obj2 | 83 | {numbers: [first, second], properties: {color: color}} = obj2 |
| 84 | print first, second, color | 84 | print first, second, color |
| 85 | ``` | 85 | ``` |
| 86 | 86 | ||
diff --git a/doc/docs/zh/doc/macro.md b/doc/docs/zh/doc/macro.md index 924b3ab..91be42c 100644 --- a/doc/docs/zh/doc/macro.md +++ b/doc/docs/zh/doc/macro.md | |||
| @@ -150,6 +150,7 @@ export macro map = (items, action) -> "[#{action} for _ in *#{items}]" | |||
| 150 | export macro filter = (items, action) -> "[_ for _ in *#{items} when #{action}]" | 150 | export macro filter = (items, action) -> "[_ for _ in *#{items} when #{action}]" |
| 151 | export macro foreach = (items, action) -> "for _ in *#{items} | 151 | export macro foreach = (items, action) -> "for _ in *#{items} |
| 152 | #{action}" | 152 | #{action}" |
| 153 | |||
| 153 | -- 文件 main.yue | 154 | -- 文件 main.yue |
| 154 | -- 在浏览器中不支持import函数,请在真实环境中尝试 | 155 | -- 在浏览器中不支持import函数,请在真实环境中尝试 |
| 155 | --[[ | 156 | --[[ |
