aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar defyrlt <defyrlt@users.noreply.github.com>2017-08-24 23:25:12 +0300
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2017-08-25 07:01:09 +0200
commit42e854809a4d7746b5191617bf31cce388c62967 (patch)
tree18424cf2a3230402309f08ba427546de6364b2a1
parent201a2cb2a282e9ffa0e8326f425bad88a5f4f47a (diff)
downloadaskama-42e854809a4d7746b5191617bf31cce388c62967.tar.gz
askama-42e854809a4d7746b5191617bf31cce388c62967.tar.bz2
askama-42e854809a4d7746b5191617bf31cce388c62967.zip
Add `unwrap()` to the hello world example in README
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
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.
}
```