From 5d7a9205df3c20f5b6a0464f3e1123394a7ca23a Mon Sep 17 00:00:00 2001 From: Li Jin Date: Fri, 6 Feb 2026 01:07:43 +0800 Subject: Updated code highlight for doc site. [skip CI] --- doc/docs/zh/doc/destructuring-assignment.md | 2 +- doc/docs/zh/doc/macro.md | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'doc/docs/zh') 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 = { } } -{numbers: [first, second]} = obj2 +{numbers: [first, second], properties: {color: color}} = obj2 print first, second, color ``` 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}]" export macro filter = (items, action) -> "[_ for _ in *#{items} when #{action}]" export macro foreach = (items, action) -> "for _ in *#{items} #{action}" + -- 文件 main.yue -- 在浏览器中不支持import函数,请在真实环境中尝试 --[[ -- cgit v1.2.3-55-g6feb