diff options
| author | iryuken <eshwarsajja20@gmail.com> | 2026-01-25 23:29:00 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-25 23:29:00 +0530 |
| commit | 1c4a6e1cf58503499b1c8245c1d15bd70efe0048 (patch) | |
| tree | 71b952ad455bf17d5bdea01472f0e2297f25eabe /examples/data_structures/binary_tree.zc | |
| parent | 863118c95caac0d69a35f6ae4d2e83844734a8a1 (diff) | |
| parent | ebc8b94baa6bc694cb4829e2eb2934a1f17fa6a1 (diff) | |
Merge pull request
fix merge conflicts and #105
Diffstat (limited to 'examples/data_structures/binary_tree.zc')
| -rw-r--r-- | examples/data_structures/binary_tree.zc | 4 |
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"; |
