diff options
| author | Ginger Bill <bill@gingerbill.org> | 2016-09-09 23:33:54 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2016-09-09 23:33:54 +0100 |
| commit | 6979678ff947cecc8e6e0d0e8ceea7e0304d3f4e (patch) | |
| tree | 774b9480272eba57e1a09011107cc136b43dde65 /examples/basic.odin | |
| parent | 1ca752ce049b934df5d03af2f06265e219f5f402 (diff) | |
Begin reording of struct members by default.
Diffstat (limited to 'examples/basic.odin')
| -rw-r--r-- | examples/basic.odin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/basic.odin b/examples/basic.odin index ad4b224c2..4d41f937d 100644 --- a/examples/basic.odin +++ b/examples/basic.odin @@ -16,7 +16,7 @@ print_string_to_buffer :: proc(buf: ^[]byte, s: string) { if slice.len < slice.cap { n := min(slice.cap-slice.len, len(s)) offset := ((slice.data as int) + slice.len) as ^byte - memory_move(offset, ^s[0], n) + memory_copy(offset, ^s[0], n) slice.len += n } } |