From 16f1722894a5be67831a0382f48937118ddd176b Mon Sep 17 00:00:00 2001 From: Weicao-CatilGrass <1992414357@qq.com> Date: Fri, 22 May 2026 07:58:02 +0800 Subject: Rename injected renderer parameter from `r` to `__renderer_inner_result` --- docs/pages/1-creating-your-first-program.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/pages/1-creating-your-first-program.md') 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. -- cgit