Skip to content

Commit

Permalink
Update stdlib/mem.jou
Browse files Browse the repository at this point in the history
  • Loading branch information
Akuli authored Dec 11, 2024
1 parent 2bd8ee4 commit 7f6f473
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/mem.jou
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ declare memmove(dest: void*, source: void*, size: long) -> void* # copy memory,

# Swaps the contents of two memory regions of the same size.
# This does nothing if the same memory region is passed twice.
# This may not work correctly if two different but overlapping regions are given.
# This probably doesn't do what you want if the memory regions overlap in some other way.
def memswap(a: void*, b: void*, size: long) -> None:
a_bytes: byte* = a
b_bytes: byte* = b
Expand Down

0 comments on commit 7f6f473

Please sign in to comment.