summaryrefslogtreecommitdiff
path: root/std/mem.zc
diff options
context:
space:
mode:
authorsuresh <sureshkrishnan.ai@gmail.com>2026-01-25 11:43:23 -0500
committersuresh <sureshkrishnan.ai@gmail.com>2026-01-25 11:43:23 -0500
commit26a0b55ed5bce4ad0ba2af109cfc96da7be2e34c (patch)
tree35ba8d7742b8ac727bfc6c4c73ab8b70f6eedb53 /std/mem.zc
parent0bb69cb67078dfa921b5b8a42275ef31dfbc9a56 (diff)
parent489336b2101bf16edeec7bfc4379408eb19b936e (diff)
Merge branch 'main' into JsonType
# Conflicts: # examples/data/json_config.zc
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;
}