From c6fb1d8040e247da2e64feb9ea08039b8b7fd6b2 Mon Sep 17 00:00:00 2001 From: Tim Gates Date: Thu, 31 Dec 2020 20:04:00 +1100 Subject: [PATCH] docs: fix simple typo, yeild -> yield There is a small typo in python_coroutine.py. Should read `yield` rather than `yeild`. --- python_coroutine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python_coroutine.py b/python_coroutine.py index 4c735ad..56951c7 100644 --- a/python_coroutine.py +++ b/python_coroutine.py @@ -10,7 +10,7 @@ # 生产者、消费者例子 -def consumer(): # 定义消费者,由于有yeild关键词,此消费者为一个生成器 +def consumer(): # 定义消费者,由于有yield关键词,此消费者为一个生成器 print("[Consumer] Init Consumer ......") r = "init ok" # 初始化返回结果,并在启动消费者时,返回给生产者 while True: