mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-12 19:19:53 -04:00
Remove contextless from slice.swap_with_slice
This commit is contained in:
1 parent
23c6d5dccb
commit
ab9a05ed2d
1 file changed
+1
-1
@@ -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))
|
||||
|
||||
Reference in new issue
Block a user