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<()> { fn render_into(&self, writer: &mut ::std::fmt::Write) -> ::askama::Result<()> {
write!( write!(
writer, writer,
"Hello, {a0}!", "Hello, {expr0}!",
a0=&::askama::MarkupDisplay::from(&self.name),)?; expr0 = &::askama::MarkupDisplay::from(&self.name),
)?;
Ok(()) Ok(())
} }
fn extension() -> Option<&'static str> { fn extension() -> Option<&'static str> {