Skip to content

Commit d13c8a3

Browse files
committed
Merge pull request yidao620c#77 from amaozhao/master
修正visti拼写错误
2 parents 22a47ee + b137d18 commit d13c8a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/c08/p22_implementing_visitor_pattern_without_recursion.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@
216216
217217
value = yield node.left
218218
219-
它会将 ``node.left`` 返回给 ``visti()`` 方法,然后 ``visti()`` 方法调用那个节点相应的 ``vist_Name()`` 方法。
219+
它会将 ``node.left`` 返回给 ``visit()`` 方法,然后 ``visit()`` 方法调用那个节点相应的 ``visit_Name()`` 方法。
220220
yield暂时将程序控制器让出给调用者,当执行完后,结果会赋值给value,
221221

222222
看完这一小节,你也许想去寻找其它没有yield语句的方案。但是这么做没有必要,你必须处理很多棘手的问题。

0 commit comments

Comments
 (0)