docs(public): finish stdlib bracket-call demos and fix import returns
Prefer [lib.fn] in remaining public/stdlib samples, correct italic returns in structure import modules, and keep lib/系统 narration from starting with backticks. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
34915e3b16
commit
d5a9301c7f
20 files changed
+45
-39
No files matched your search
@@ -10,7 +10,7 @@ In the YAML header, `import utils:utils.mq.md` imports a sibling module and bind
|
||||
|
||||
Bind a return value, print it, then call greet:
|
||||
|
||||
**`y` = > utils.add_one n=41**
|
||||
**`y` = [utils.add_one] n=41**
|
||||
|
||||
> print text=`y`
|
||||
|
||||
|
||||
@@ -1,14 +1,16 @@
|
||||
---
|
||||
title: Utility module
|
||||
description: Imported by main; bold is a return value
|
||||
description: Imported by main; italic is return; print for side effects
|
||||
---
|
||||
|
||||
## add_one
|
||||
+ `n`
|
||||
|
||||
**`n` + 1**
|
||||
*n + 1*
|
||||
|
||||
## greet
|
||||
+ `who`
|
||||
|
||||
> print text=Hello, `who`!
|
||||
|
||||
*None*
|
||||
@@ -10,7 +10,7 @@ description: frontmatter 导入 bind:路径.mq.md
|
||||
|
||||
绑定返回值、打印,再调用问候:
|
||||
|
||||
**`y` = > 工具.加一 n=41**
|
||||
**`y` = [工具.加一] n=41**
|
||||
|
||||
> 打印 内容=`y`
|
||||
|
||||
|
||||
@@ -1,14 +1,16 @@
|
||||
---
|
||||
title: 工具模块
|
||||
description: 被 main 导入;粗体为返回值
|
||||
description: 被 main 导入;斜体为返回;副作用用打印
|
||||
---
|
||||
|
||||
## 加一
|
||||
+ `n`
|
||||
|
||||
**`n` + 1**
|
||||
*n + 1*
|
||||
|
||||
## 问候
|
||||
+ `谁`
|
||||
|
||||
> 打印 内容=你好,`谁`!
|
||||
|
||||
*无*
|
||||
Reference in new issue
Block a user