You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@freemarker.apache.org by dd...@apache.org on 2016/06/12 16:53:48 UTC
[07/50] incubator-freemarker git commit: Manual: Switched to "+=" in
an example
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
Commit: 5ab3895e316d8ea051c454ada6d404bdbba7c6f2
Parents: 8b4d84b
Author: ddekany <dd...@apache.org>
Authored: Mon May 23 08:55:18 2016 +0200
Committer: ddekany <dd...@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"><#function avg nums...>
<#local sum = 0>
<#list nums as num>
- <#local sum = sum + num>
+ <#local sum += num>
</#list>
<#if nums?size != 0>
<#return sum / nums?size>