From 04ef9414463dc2fff0d9aeedc7f10b2b972bf64a Mon Sep 17 00:00:00 2001 From: Nicolas Abril Date: Fri, 18 Oct 2024 00:59:54 +0200 Subject: [PATCH] Fix Tree/Leaf and Tree/Node not capitalized in syntax.md --- docs/syntax.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/syntax.md b/docs/syntax.md index 25d5d03c..f13b2c60 100644 --- a/docs/syntax.md +++ b/docs/syntax.md @@ -291,10 +291,10 @@ It is possible to bind a variable name to the matching value. The fields of the ### Fold ```python -fold x = Tree/leaf: - case Tree/node: +fold x = Tree/Leaf: + case Tree/Node: return x.value + x.left + x.right - case Tree/leaf: + case Tree/Leaf: return 0 ```