This is an automated email from the ASF dual-hosted git repository.
libenchao 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 97dee4bd2ad [FLINK-31808][docs] Fix wrong examples of how to set
operator name in documents
97dee4bd2ad is described below
commit 97dee4bd2ade278805241a245385df3ceeb90150
Author: Weihua Hu <[email protected]>
AuthorDate: Fri Apr 14 17:31:07 2023 +0800
[FLINK-31808][docs] Fix wrong examples of how to set operator name in
documents
Close apache/flink#22401
---
docs/content.zh/docs/dev/datastream/operators/overview.md | 4 ++--
docs/content/docs/dev/datastream/operators/overview.md | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/docs/content.zh/docs/dev/datastream/operators/overview.md
b/docs/content.zh/docs/dev/datastream/operators/overview.md
index fbccbbdbc10..a8c1b901d46 100644
--- a/docs/content.zh/docs/dev/datastream/operators/overview.md
+++ b/docs/content.zh/docs/dev/datastream/operators/overview.md
@@ -851,12 +851,12 @@ Flink里的算子和作业节点会有一个名字和一个描述。名字和描
{{< tabs namedescription>}}
{{< tab "Java" >}}
```java
-someStream.filter(...).setName("filter").setDescription("x in (1, 2, 3, 4) and
y > 1");
+someStream.filter(...).name("filter").setDescription("x in (1, 2, 3, 4) and y
> 1");
```
{{< /tab >}}
{{< tab "Scala" >}}
```scala
-someStream.filter(...).setName("filter").setDescription("x in (1, 2, 3, 4) and
y > 1")
+someStream.filter(...).name("filter").setDescription("x in (1, 2, 3, 4) and y
> 1")
```
{{< /tab >}}
{{< tab "Python" >}}
diff --git a/docs/content/docs/dev/datastream/operators/overview.md
b/docs/content/docs/dev/datastream/operators/overview.md
index d471f485fe5..5e04da86aea 100644
--- a/docs/content/docs/dev/datastream/operators/overview.md
+++ b/docs/content/docs/dev/datastream/operators/overview.md
@@ -855,12 +855,12 @@ The description can contain detail information about
operators to facilitate deb
{{< tabs namedescription >}}
{{< tab "Java" >}}
```java
-someStream.filter(...).setName("filter").setDescription("x in (1, 2, 3, 4) and
y > 1");
+someStream.filter(...).name("filter").setDescription("x in (1, 2, 3, 4) and y
> 1");
```
{{< /tab >}}
{{< tab "Scala" >}}
```scala
-someStream.filter(...).setName("filter").setDescription("x in (1, 2, 3, 4) and
y > 1")
+someStream.filter(...).name("filter").setDescription("x in (1, 2, 3, 4) and y
> 1")
```
{{< /tab >}}
{{< tab "Python" >}}