diff options
| author | Weicao-CatilGrass <1992414357@qq.com> | 2026-05-22 07:58:02 +0800 |
|---|---|---|
| committer | Weicao-CatilGrass <1992414357@qq.com> | 2026-05-22 07:58:02 +0800 |
| commit | 16f1722894a5be67831a0382f48937118ddd176b (patch) | |
| tree | 1a23a6e82058966c206009358f5e6587c57b3d5b /docs/pages/1-creating-your-first-program.md | |
| parent | e4a4e3e2b558d771537c7a4c0ba22f0d6b541b6e (diff) | |
Rename injected renderer parameter from `r` to `__renderer_inner_result`
Diffstat (limited to 'docs/pages/1-creating-your-first-program.md')
| -rw-r--r-- | docs/pages/1-creating-your-first-program.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/pages/1-creating-your-first-program.md b/docs/pages/1-creating-your-first-program.md index aaf3171..7348805 100644 --- a/docs/pages/1-creating-your-first-program.md +++ b/docs/pages/1-creating-your-first-program.md @@ -146,7 +146,7 @@ fn renderer_name (_prev: PreviousType) { } ##### About `r_println!()` 💡 - You might notice that the print macro used inside `#[renderer]` is `r_println!` instead of `println!`. This is because the framework's rendering logic doesn't happen inside that function: after `#[renderer]` expands, it injects a `r: &mut RenderResult` into the function; `r_println!` appends the message to the `RenderResult`, and after the dispatcher closes, the final rendered data is handed to `Program::exec` for output. + You might notice that the print macro used inside `#[renderer]` is `r_println!` instead of `println!`. This is because the framework's rendering logic doesn't happen inside that function: after `#[renderer]` expands, it injects a `__renderer_inner_result: &mut RenderResult` into the function; `r_println!` appends the message to the `RenderResult`, and after the dispatcher closes, the final rendered data is handed to `Program::exec` for output. |
