From 42e854809a4d7746b5191617bf31cce388c62967 Mon Sep 17 00:00:00 2001 From: defyrlt Date: Thu, 24 Aug 2017 23:25:12 +0300 Subject: Add `unwrap()` to the hello world example in README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index f1fb0ae..4233f8c 100644 --- a/README.md +++ b/README.md @@ -101,7 +101,7 @@ struct HelloTemplate<'a> { // the name of the struct can be anything fn main() { let hello = HelloTemplate { name: "world" }; // instantiate your struct - println!("{}", hello.render()); // then render it. + println!("{}", hello.render().unwrap()); // then render it. } ``` -- cgit