mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-15 11:56:50 +00:00
merged branch jrobeson/patch-1 (PR #1108)
This PR was merged into the master branch.
Discussion
----------
change mention of print to sprintf in format filter
The format specifiers are actually mentioned on the [sprintf](http://php.net/sprintf) page
Commits
-------
5746c11 change mention of print to sprintf in format filter
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
==========
|
||||
|
||||
The ``format`` filter formats a given string by replacing the placeholders
|
||||
(placeholders follows the `printf`_ notation):
|
||||
(placeholders follows the `sprintf`_ notation):
|
||||
|
||||
.. code-block:: jinja
|
||||
|
||||
@@ -11,6 +11,6 @@ The ``format`` filter formats a given string by replacing the placeholders
|
||||
{# returns I like foo and bar
|
||||
if the foo parameter equals to the foo string. #}
|
||||
|
||||
.. _`printf`: http://www.php.net/printf
|
||||
.. _`sprintf`: http://www.php.net/sprintf
|
||||
|
||||
.. seealso:: :doc:`replace<replace>`
|
||||
|
||||
Reference in New Issue
Block a user