summaryrefslogtreecommitdiff
path: root/std/stack.zc
diff options
context:
space:
mode:
Diffstat (limited to 'std/stack.zc')
-rw-r--r--std/stack.zc4
1 files changed, 2 insertions, 2 deletions
diff --git a/std/stack.zc b/std/stack.zc
index db02f2d..9b4d375 100644
--- a/std/stack.zc
+++ b/std/stack.zc
@@ -21,7 +21,7 @@ impl Stack<T> {
}
fn clone(self) -> Stack<T> {
- var new_stack = Stack<T>::new();
+ let new_stack = Stack<T>::new();
new_stack.len = self.len;
new_stack.cap = self.cap;
new_stack.data = malloc(sizeof(T) * new_stack.cap);
@@ -44,7 +44,7 @@ impl Stack<T> {
fn pop(self) -> Option<T> {
if (self.len > 0) {
- var value = self.data[self.len - 1];
+ let value = self.data[self.len - 1];
self.len = self.len - 1;
return Option<T>::Some(value);
}