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:27:53 UTC
[flink] branch master 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 master
in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/master by this push:
new d1ff833 [FLINK-9985][docs] Fix parameter order in windowing example
d1ff833 is described below
commit d1ff833a05cc79c4c91c051c1a825ba656b81799
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;
}
}