aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar bott <mhpoin@gmail.com>2018-11-11 20:25:23 +0100
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2018-11-11 21:06:51 +0100
commiteb5f35ef9bdc385ab24533bc47acd8c8eb7313c3 (patch)
tree9421781a508e2ec02c2e963023ee10025fee6706
parente7ed953b88c7f6383085c88dd5f761bb2875c02b (diff)
downloadaskama-eb5f35ef9bdc385ab24533bc47acd8c8eb7313c3.tar.gz
askama-eb5f35ef9bdc385ab24533bc47acd8c8eb7313c3.tar.bz2
askama-eb5f35ef9bdc385ab24533bc47acd8c8eb7313c3.zip
Update generated code example
-rw-r--r--README.md5
1 files changed, 2 insertions, 3 deletions
diff --git a/README.md b/README.md
index 788a25e..6264c2b 100644
--- a/README.md
+++ b/README.md
@@ -158,9 +158,8 @@ impl < 'a > ::askama::Template for HelloTemplate< 'a > {
fn render_into(&self, writer: &mut ::std::fmt::Write) -> ::askama::Result<()> {
write!(
writer,
- "Hello, {}!",
- &::askama::MarkupDisplay::from(&self.name),
- )?;
+ "Hello, {a0}!",
+ a0=&::askama::MarkupDisplay::from(&self.name),)?;
Ok(())
}
fn extension() -> Option<&'static str> {