aboutsummaryrefslogtreecommitdiff
path: root/core/slice
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-03-29 15:43:33 +0100
committergingerBill <bill@gingerbill.org>2021-03-29 15:43:33 +0100
commitfc8c94324e207d5ca919077e8bf4e19fd6be5e5f (patch)
treef2a0d921ac24f260d89901693b114c44850d44f2 /core/slice
parent8c20ac1bf052851c0547b77bfacb13bb53265b8c (diff)
Fix typo
Diffstat (limited to 'core/slice')
-rw-r--r--core/slice/slice.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/slice/slice.odin b/core/slice/slice.odin
index 32d6bea18..75105a1c4 100644
--- a/core/slice/slice.odin
+++ b/core/slice/slice.odin
@@ -139,7 +139,7 @@ fill :: proc(array: $T/[]$E, value: T) {
}
}
-rotate_left :: proc(array: $T/[]$E, k: int) {
+rotate_left :: proc(array: $T/[]$E, mid: int) {
n := len(array);
m := mid %% n;
k := n - m;