aboutsummaryrefslogtreecommitdiff
path: root/docs/_zh_CN/pages/2-step1.md
diff options
context:
space:
mode:
authorWeicao-CatilGrass <1992414357@qq.com>2026-05-27 14:31:26 +0800
committerWeicao-CatilGrass <1992414357@qq.com>2026-05-27 14:31:26 +0800
commit09435a6719b78ed51ce8bd708bd430dec4abd9c2 (patch)
tree0279b3ef7a206747748c28a47d8f086bc25717e6 /docs/_zh_CN/pages/2-step1.md
parent1ca45737fbceb7266c101f7faf06c005a4dea241 (diff)
Fix indentation and update Chinese documentation content
Diffstat (limited to 'docs/_zh_CN/pages/2-step1.md')
-rw-r--r--docs/_zh_CN/pages/2-step1.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/_zh_CN/pages/2-step1.md b/docs/_zh_CN/pages/2-step1.md
index 56f4b3c..251f23b 100644
--- a/docs/_zh_CN/pages/2-step1.md
+++ b/docs/_zh_CN/pages/2-step1.md
@@ -68,18 +68,17 @@ features = [""]
<iframe
src="../play/play.html?tur=zh_CN/2-writing3.md&amp;title=渲染 ResultFruits"
- height="740px">
+ height="860px">
</iframe>
### 💡 关于 `r_println!` 宏
`r_println!` 宏并不是对 `println!` 的包装
-它是为 `#[renderer]` 宏中 **隐式注入** 的 `&mut RenderResult` 值提供。
+它是为 `#[renderer]` 宏中 **隐式注入** 的 `&mut RenderResult` 值提供的便捷访问方案。
在 `r_println!` 调用时,不会立刻向 stdout 输出信息,而是会被累计到 `&mut RenderResult` 中,在程序结束时整体输出。
-
## 六、编译并运行
现在您已经完成了 `list` 命令,现在可以使用 `cargo run` 运行您的程序:
@@ -133,6 +132,7 @@ fn render_fruits(result: ResultFruits) {
gen_program!();
```
+
</details>
<p align="center" style="font-size: 0.85em; color: gray;">