You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by ch...@apache.org on 2018/07/31 09:28:41 UTC

[flink] branch release-1.5 updated: [FLINK-9985][docs] Fix parameter order in windowing example

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

chesnay pushed a commit to branch release-1.5
in repository https://gitbox.apache.org/repos/asf/flink.git


The following commit(s) were added to refs/heads/release-1.5 by this push:
     new a672bbc  [FLINK-9985][docs] Fix parameter order in windowing example
a672bbc is described below

commit a672bbcba00ac15f63c59bd0f511b2b13b8b59a6
Author: lsy <ld...@163.com>
AuthorDate: Tue Jul 31 17:27:49 2018 +0800

    [FLINK-9985][docs] Fix parameter order in windowing example
---
 docs/dev/stream/operators/windows.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/dev/stream/operators/windows.md b/docs/dev/stream/operators/windows.md
index f657c80..e5ec009 100644
--- a/docs/dev/stream/operators/windows.md
+++ b/docs/dev/stream/operators/windows.md
@@ -969,7 +969,7 @@ private static class MyFoldFunction
 
   public Tuple3<String, Long, Integer> fold(Tuple3<String, Long, Integer> acc, SensorReading s) {
       Integer cur = acc.getField(2);
-      acc.setField(2, cur + 1);
+      acc.setField(cur + 1, 2);
       return acc;
   }
 }