diff options
| author | Laytan Laats <laytanlaats@hotmail.com> | 2024-08-14 00:08:46 +0200 |
|---|---|---|
| committer | Laytan Laats <laytanlaats@hotmail.com> | 2024-08-14 00:08:46 +0200 |
| commit | bb54a0a9729a665ab272779a9837effe017c6906 (patch) | |
| tree | 9585609d741b99155b39328ecab84f9f7583e451 | |
| parent | 4b7f32c2872b5baff53b3c2879fe9647214eded8 (diff) | |
fix whitespace
| -rw-r--r-- | core/mem/doc.odin | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/core/mem/doc.odin b/core/mem/doc.odin index 5e6e1a929..44c93f798 100644 --- a/core/mem/doc.odin +++ b/core/mem/doc.odin @@ -7,22 +7,22 @@ in your program and report leaks and bad frees: Example: package foo - + import "core:mem" import "core:fmt" - + _main :: proc() { // do stuff } - + main :: proc() { track: mem.Tracking_Allocator mem.tracking_allocator_init(&track, context.allocator) defer mem.tracking_allocator_destroy(&track) context.allocator = mem.tracking_allocator(&track) - + _main() - + for _, leak in track.allocation_map { fmt.printf("%v leaked %m\n", leak.location, leak.size) } |