Fix typo: swap node and match in the example (#1997)
This commit is contained in:
parent
f06a8c73d8
commit
1f38efd742
|
@ -1148,7 +1148,7 @@ Using modern syntax, a depth-first tree traversal would then be written as
|
|||
follows::
|
||||
|
||||
def traverse(node):
|
||||
node match:
|
||||
match node:
|
||||
case Node(left, right):
|
||||
traverse(left)
|
||||
traverse(right)
|
||||
|
|
Loading…
Reference in New Issue