Update generate code example

This commit is contained in:
bott 2018-11-13 21:35:15 +01:00 committed by Juan Aguilar
parent c5f5d80cbc
commit ade72a0f9d

View File

@ -158,8 +158,9 @@ impl < 'a > ::askama::Template for HelloTemplate< 'a > {
fn render_into(&self, writer: &mut ::std::fmt::Write) -> ::askama::Result<()> {
write!(
writer,
"Hello, {a0}!",
a0=&::askama::MarkupDisplay::from(&self.name),)?;
"Hello, {expr0}!",
expr0 = &::askama::MarkupDisplay::from(&self.name),
)?;
Ok(())
}
fn extension() -> Option<&'static str> {