This is an automated email from the ASF dual-hosted git repository.

ddekany pushed a commit to branch 2.3-gae
in repository https://gitbox.apache.org/repos/asf/freemarker.git


The following commit(s) were added to refs/heads/2.3-gae by this push:
     new 1321085  Fix typo
     new 5c98cf4  Merge pull request #61 from quaff/2.3-gae
1321085 is described below

commit 13210854689d850a52c9a10d6f9eeae910b68433
Author: Yanming Zhou <[email protected]>
AuthorDate: Tue Dec 3 16:38:52 2019 +0800

    Fix typo
    
    ?count should be ?counter
---
 src/manual/en_US/book.xml | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/manual/en_US/book.xml b/src/manual/en_US/book.xml
index d9717e1..c8a2aab 100644
--- a/src/manual/en_US/book.xml
+++ b/src/manual/en_US/book.xml
@@ -22468,7 +22468,7 @@ All rights reserved.</emphasis></programlisting>
               cases, as it doesn't work well with
               <literal>&lt;#sep&gt;</literal>,
               <literal><replaceable>item</replaceable>?has_next</literal>,
-              <literal><replaceable>item</replaceable>?count</literal>,
+              <literal><replaceable>item</replaceable>?counter</literal>,
               <literal><replaceable>item</replaceable>?index</literal>,
               <literal><replaceable>item</replaceable>?item_parity</literal>,
               etc. Instead, use <link
@@ -22518,7 +22518,7 @@ All rights reserved.</emphasis></programlisting>
             <literal>sep</literal> directive will not be executed for that
             iteration. Using <literal>continue</literal> together with
             <literal>sep</literal> is generally a bad idea anyway, also
-            <literal>?has_next</literal>, <literal>?count</literal>,
+            <literal>?has_next</literal>, <literal>?counter</literal>,
             <literal>?index</literal>, <literal>?item_parity</literal>, etc.
             will not work as you certainly wanted if you completely skip
             items. To solve such situations see <link
@@ -22605,7 +22605,7 @@ All rights reserved.</emphasis></programlisting>
             linkend="ref.directive.if"><literal>if</literal> directive</link>
             for that, because then <literal>&lt;#sep&gt;</literal>,
             <literal><replaceable>item</replaceable>?has_next</literal>,
-            <literal><replaceable>item</replaceable>?count</literal>,
+            <literal><replaceable>item</replaceable>?counter</literal>,
             <literal><replaceable>item</replaceable>?index</literal>,
             <literal><replaceable>item</replaceable>?item_parity</literal>,
             etc., will not be usable, as FreeMarker doesn't know what items

Reply via email to