You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by al...@apache.org on 2016/04/07 10:54:39 UTC
flink git commit: [FLINK-3711][docs] Documentation of Scala fold()()
uses correct syntax
Repository: flink
Updated Branches:
refs/heads/master a3415028d -> e5b93da0e
[FLINK-3711][docs] Documentation of Scala fold()() uses correct syntax
Closes #1860
Project: http://git-wip-us.apache.org/repos/asf/flink/repo
Commit: http://git-wip-us.apache.org/repos/asf/flink/commit/e5b93da0
Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/e5b93da0
Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/e5b93da0
Branch: refs/heads/master
Commit: e5b93da0eda610e163a5d4a72cb23bd69d9c136a
Parents: a341502
Author: Shannon Carey <sc...@expedia.com>
Authored: Thu Apr 7 10:00:38 2016 +0530
Committer: Aljoscha Krettek <al...@gmail.com>
Committed: Thu Apr 7 10:54:22 2016 +0200
----------------------------------------------------------------------
docs/apis/streaming/index.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flink/blob/e5b93da0/docs/apis/streaming/index.md
----------------------------------------------------------------------
diff --git a/docs/apis/streaming/index.md b/docs/apis/streaming/index.md
index a899844..17d8b56 100644
--- a/docs/apis/streaming/index.md
+++ b/docs/apis/streaming/index.md
@@ -637,7 +637,7 @@ keyedStream.reduce { _ + _ }
emits the sequence "start-1", "start-1-2", "start-1-2-3", ...</p>
{% highlight scala %}
val result: DataStream[String] =
- keyedStream.fold("start", (str, i) => { str + "-" + i })
+ keyedStream.fold("start")((str, i) => { str + "-" + i })
{% endhighlight %}
</p>
</td>