summaryrefslogtreecommitdiff
path: root/examples/data_structures/binary_tree.zc
diff options
context:
space:
mode:
authorSAJJA EASWAR <eshwarsajja20@gmail.com>2026-01-25 22:59:36 +0530
committerSAJJA EASWAR <eshwarsajja20@gmail.com>2026-01-25 22:59:36 +0530
commitebc8b94baa6bc694cb4829e2eb2934a1f17fa6a1 (patch)
tree71b952ad455bf17d5bdea01472f0e2297f25eabe /examples/data_structures/binary_tree.zc
parent863118c95caac0d69a35f6ae4d2e83844734a8a1 (diff)
parent489336b2101bf16edeec7bfc4379408eb19b936e (diff)
Merge branch 'main' into pr-109
Diffstat (limited to 'examples/data_structures/binary_tree.zc')
-rw-r--r--examples/data_structures/binary_tree.zc4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/data_structures/binary_tree.zc b/examples/data_structures/binary_tree.zc
index 14e7b3d..86acb21 100644
--- a/examples/data_structures/binary_tree.zc
+++ b/examples/data_structures/binary_tree.zc
@@ -8,7 +8,7 @@ struct Node {
impl Node {
fn new(v: int) -> Self* {
- var n = alloc<Self>();
+ let n = alloc<Self>();
n.value = v;
n.left = NULL;
n.right = NULL;
@@ -71,7 +71,7 @@ impl BST {
}
fn main() {
- var tree = BST::new();
+ let tree = BST::new();
defer tree.free();
"Inserting: 50, 30, 20, 40, 70, 60, 80";