You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by se...@apache.org on 2020/03/02 14:29:57 UTC

[flink] 02/03: [hotfix][docs] Fix the mismatch between java and scala CEP examples

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

sewen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git

commit d62eb7ed08d277b07f67c483987a30a51a7a2a59
Author: shuai-xu <sh...@foxmail.com>
AuthorDate: Mon Mar 2 15:08:50 2020 +0800

    [hotfix][docs] Fix the mismatch between java and scala CEP examples
    
    This closes #11278
---
 docs/dev/libs/cep.md | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/docs/dev/libs/cep.md b/docs/dev/libs/cep.md
index a6b9251..8e196b6 100644
--- a/docs/dev/libs/cep.md
+++ b/docs/dev/libs/cep.md
@@ -206,6 +206,9 @@ start.timesOrMore(2);
 // expecting 2 or more occurrences and repeating as many as possible
 start.timesOrMore(2).greedy();
 
+// expecting 0, 2 or more occurrences
+start.timesOrMore(2).optional()
+
 // expecting 0, 2 or more occurrences and repeating as many as possible
 start.timesOrMore(2).optional().greedy();
 {% endhighlight %}