aboutsummaryrefslogtreecommitdiff
path: root/docs/pages/13-hook.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/pages/13-hook.md')
-rw-r--r--docs/pages/13-hook.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/pages/13-hook.md b/docs/pages/13-hook.md
index 0c5e460..26f8712 100644
--- a/docs/pages/13-hook.md
+++ b/docs/pages/13-hook.md
@@ -60,7 +60,7 @@ Each hook callback receives a corresponding `Hook*Info` struct containing contex
@@@#[chain] fn handle_greet(args: EntryGreet) -> Next {
@@@ ResultName::new(args.inner.first().cloned().unwrap_or_default()).to_render()
@@@}
-@@@#[renderer] fn render_name(r: ResultName) { r_println!("Hello, {}!", *r); }
+@@@#[renderer] fn render_name(r: ResultName) -> RenderResult { RenderResult::new() }
fn main() {
let mut program = ThisProgram::new();