diff options
author | defyrlt <defyrlt@users.noreply.github.com> | 2017-08-24 23:25:12 +0300 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2017-08-25 07:01:09 +0200 |
commit | 42e854809a4d7746b5191617bf31cce388c62967 (patch) | |
tree | 18424cf2a3230402309f08ba427546de6364b2a1 /README.md | |
parent | 201a2cb2a282e9ffa0e8326f425bad88a5f4f47a (diff) | |
download | askama-42e854809a4d7746b5191617bf31cce388c62967.tar.gz askama-42e854809a4d7746b5191617bf31cce388c62967.tar.bz2 askama-42e854809a4d7746b5191617bf31cce388c62967.zip |
Add `unwrap()` to the hello world example in README
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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. } ``` |