aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2025-12-11 14:54:03 +0000
committergingerBill <gingerBill@users.noreply.github.com>2025-12-11 14:54:03 +0000
commitab9a05ed2d2e0eb76ef53709f91c54534aee543a (patch)
tree5e2f430e5c49b1bab24bc2f9a3d5126c9f8ab702
parent23c6d5dccbe4eb25efd82645a19e66de201c2de4 (diff)
Remove `contextless` from `slice.swap_with_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 8e46e213c..4e3289321 100644
--- a/core/slice/slice.odin
+++ b/core/slice/slice.odin
@@ -447,7 +447,7 @@ rotate_right :: proc "contextless" (array: $T/[]$E, k: int) {
rotate_left(array, -k)
}
-swap_with_slice :: proc "contextless" (a, b: $T/[]$E, loc := #caller_location) {
+swap_with_slice :: proc(a, b: $T/[]$E, loc := #caller_location) {
assert(len(a) == len(b), "miss matching slice lengths", loc)
ptr_swap_non_overlapping(raw_data(a), raw_data(b), len(a)*size_of(E))