From b54292327e02c30a5073e2f17f2a615394c1aa41 Mon Sep 17 00:00:00 2001 From: ornicar Date: Sun, 7 Nov 2010 20:26:32 +0100 Subject: [PATCH] Fix replace filter name in documentation --- doc/02-Twig-for-Template-Designers.markdown | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/doc/02-Twig-for-Template-Designers.markdown b/doc/02-Twig-for-Template-Designers.markdown index f326697..8ca677e 100644 --- a/doc/02-Twig-for-Template-Designers.markdown +++ b/doc/02-Twig-for-Template-Designers.markdown @@ -1058,7 +1058,7 @@ The `format` filter formats a given string by replacing the placeholders [twig] {# string is a format string like: I like %this% and %that%. #} - {{ string|format(['%this%': foo, '%that%': "bar"]) }} + {{ string|replace(['%this%': foo, '%that%': "bar"]) }} {# returns I like foo and bar. (if the foo parameter equals to the foo string) #} ### `cycle` -- 1.7.2.5