summaryrefslogtreecommitdiff
path: root/examples/data_structures/binary_tree.zc
diff options
context:
space:
mode:
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";