From a085978acdb60016405692a07970058f22b77651 Mon Sep 17 00:00:00 2001 From: Nicolas Abril Date: Thu, 17 Oct 2024 23:04:30 +0000 Subject: [PATCH] Fix Tree/Leaf and Tree/Node not capitalized in syntax.md (#730) --- 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 ```