aboutsummaryrefslogtreecommitdiff
path: root/docs/pages/14-testing.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/pages/14-testing.md')
-rw-r--r--docs/pages/14-testing.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/pages/14-testing.md b/docs/pages/14-testing.md
index fa196b0..65fedc9 100644
--- a/docs/pages/14-testing.md
+++ b/docs/pages/14-testing.md
@@ -16,7 +16,7 @@ Renderer is the easiest to test — call the function, assert the result:
#[renderer]
fn render_greet(result: ResultName) -> RenderResult {
let mut r = RenderResult::new();
- writeln!(r, "Hello, {}!", *result).ok();
+ r_println!(r, "Hello, {}!", *result);
r
}