summaryrefslogtreecommitdiff
path: root/std/mem.zc
diff options
context:
space:
mode:
Diffstat (limited to 'std/mem.zc')
-rw-r--r--std/mem.zc2
1 files changed, 1 insertions, 1 deletions
diff --git a/std/mem.zc b/std/mem.zc
index ed69c9b..6ee96e8 100644
--- a/std/mem.zc
+++ b/std/mem.zc
@@ -81,7 +81,7 @@ fn mem_copy<T>(dst: T*, src: T*, count: usize) {
}
fn swap<T>(a: T*, b: T*) {
- var tmp = *a;
+ let tmp = *a;
*a = *b;
*b = tmp;
}