Skip to content

Commit

Permalink
[FLINK-20467][python][docs] Fix the example in Python DataStream API …
Browse files Browse the repository at this point in the history
…documentation

This closes apache#14297.
  • Loading branch information
shuiqiangchen authored and dianfu committed Dec 3, 2020
1 parent c1b96de commit a411abf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/dev/python/datastream-api-users-guide/operators.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ instance:
# Implementing MapFunction
class MyMapFunction(MapFunction):

def map(value):
def map(self, value):
return value + 1

data_stream = env.from_collection([1, 2, 3, 4, 5], type_info=Types.INT())
Expand Down
2 changes: 1 addition & 1 deletion docs/dev/python/datastream-api-users-guide/operators.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Python DataStream API 给各种算子提供了函数接口,用户可以定义
# Implementing MapFunction
class MyMapFunction(MapFunction):

def map(value):
def map(self, value):
return value + 1

data_stream = env.from_collection([1, 2, 3, 4, 5], type_info=Types.INT())
Expand Down

0 comments on commit a411abf

Please sign in to comment.