freemarker-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ddek...@apache.org
Subject incubator-freemarker git commit: Manual: Switched to "+=" in an example
Date Mon, 23 May 2016 06:55:34 GMT
Repository: incubator-freemarker
Updated Branches:
  refs/heads/2.3-gae 8b4d84b0f -> 5ab3895e3


Manual: Switched to "+=" in an example


Project: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/commit/5ab3895e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/tree/5ab3895e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/diff/5ab3895e

Branch: refs/heads/2.3-gae
Commit: 5ab3895e316d8ea051c454ada6d404bdbba7c6f2
Parents: 8b4d84b
Author: ddekany <ddekany@apache.org>
Authored: Mon May 23 08:55:18 2016 +0200
Committer: ddekany <ddekany@apache.org>
Committed: Mon May 23 08:55:18 2016 +0200

----------------------------------------------------------------------
 src/manual/en_US/book.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/5ab3895e/src/manual/en_US/book.xml
----------------------------------------------------------------------
diff --git a/src/manual/en_US/book.xml b/src/manual/en_US/book.xml
index 4f7000b..99a7205 100644
--- a/src/manual/en_US/book.xml
+++ b/src/manual/en_US/book.xml
@@ -19420,7 +19420,7 @@ ${avg(10, 20)}</programlisting>
           <programlisting role="template">&lt;#function avg nums...&gt;
   &lt;#local sum = 0&gt;
   &lt;#list nums as num&gt;
-    &lt;#local sum = sum + num&gt;
+    &lt;#local sum += num&gt;
   &lt;/#list&gt;
   &lt;#if nums?size != 0&gt;
     &lt;#return sum / nums?size&gt;


Mime
View raw message