diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2026-02-08 12:51:24 +0100 |
|---|---|---|
| committer | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2026-02-08 12:51:24 +0100 |
| commit | af8bc8bbfc8939234242690bc74c1ffe075a15df (patch) | |
| tree | e36dcf660ee5ab7dd6851eeb9fe6ffc4dae0f306 /core/mem | |
| parent | af57035fd65cda96b7ec17e965184a922fdf6e82 (diff) | |
More conflicts during rebase
Diffstat (limited to 'core/mem')
| -rw-r--r-- | core/mem/virtual/doc.odin | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/core/mem/virtual/doc.odin b/core/mem/virtual/doc.odin index 6c6ce055f..249e22ee8 100644 --- a/core/mem/virtual/doc.odin +++ b/core/mem/virtual/doc.odin @@ -5,8 +5,8 @@ virtual.Arena usage Example: // Source: https://github.com/odin-lang/examples/blob/master/arena_allocator/arena_allocator.odin - import "core:fmt" - import "core:os" + import "core:fmt" + import os "core:os/os2" // virtual package implements a multi-purpose arena allocator. If you are on a // platform that does not support virtual memory, then there is also a similar @@ -26,14 +26,14 @@ Example: // See arena_init_buffer for an arena that does not use virtual memory, // instead it relies on you feeding it a buffer. - f1, f1_ok := os.read_entire_file("file1.txt", arena_alloc) - ensure(f1_ok) + f1, f1_err := os.read_entire_file("file1.txt", arena_alloc) + ensure(f1_err == nil) - f2, f2_ok := os.read_entire_file("file2.txt", arena_alloc) - ensure(f2_ok) + f2, f2_err := os.read_entire_file("file2.txt", arena_alloc) + ensure(f2_err == nil) - f3, f3_ok := os.read_entire_file("file3.txt", arena_alloc) - ensure(f3_ok) + f3, f3_err := os.read_entire_file("file3.txt", arena_alloc) + ensure(f3_err == nil) res := make([]string, 3, arena_alloc) res[0] = string(f1) |