Fix typo: swap node and match in the example (#1997)

This commit is contained in:
Philippe F 2021-06-21 22:33:34 +02:00 committed by GitHub
parent f06a8c73d8
commit 1f38efd742
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)