summaryrefslogtreecommitdiff
path: root/std/mem.zc
diff options
context:
space:
mode:
authorZuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian>2026-01-25 15:12:12 +0000
committerZuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian>2026-01-25 15:12:12 +0000
commit7d1944ab9d2307f2736afe8520436872db1c7617 (patch)
tree7380a4f148f9ce0b70ed9f02cfa5e8561c783a7a /std/mem.zc
parent8b720543f538862796fec0ff6b7ea12cb140bf0f (diff)
'let' it be
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;
}