Fix docs typo

This commit is contained in:
stoically 2020-07-24 04:32:51 +02:00 committed by GitHub
parent 4a8ce80e3d
commit f37f074a67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -51,8 +51,8 @@ And render the data with `render_once()` method.
```rust
fn main() {
let ctx = HelloTemplate {
messages: vec![String::from("foo"), String::from("bar")];
}
messages: vec![String::from("foo"), String::from("bar")],
};
// Now render templates with given data
println!("{}", ctx.render_once().unwrap());