mem: Correct wrong error message

This commit is contained in:
Feoramund
2025-06-14 13:14:14 -04:00
parent aa41a77fc4
commit 3261896790

View File

@@ -1719,7 +1719,7 @@ dynamic_arena_destroy :: proc(a: ^Dynamic_Arena) {
@(private="file")
_dynamic_arena_cycle_new_block :: proc(a: ^Dynamic_Arena, loc := #caller_location) -> (err: Allocator_Error) {
if a.block_allocator.procedure == nil {
panic("You must call arena_init on a Pool before using it", loc)
panic("You must call `dynamic_arena_init` on a Dynamic Arena before using it.", loc)
}
if a.current_block != nil {
append(&a.used_blocks, a.current_block, loc=loc)