diff options
| author | Li Jin <dragon-fly@qq.com> | 2026-02-06 01:07:43 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2026-02-06 01:07:43 +0800 |
| commit | 5d7a9205df3c20f5b6a0464f3e1123394a7ca23a (patch) | |
| tree | 271ffceff3185e5178cc0a11695acdada10adeae /doc/docs/zh | |
| parent | a8a23bf33c19d1c210c5562666e53893a5d86b18 (diff) | |
| download | yuescript-5d7a9205df3c20f5b6a0464f3e1123394a7ca23a.tar.gz yuescript-5d7a9205df3c20f5b6a0464f3e1123394a7ca23a.tar.bz2 yuescript-5d7a9205df3c20f5b6a0464f3e1123394a7ca23a.zip | |
Updated code highlight for doc site. [skip CI]
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 | --[[ |
