From 4ffa13d5cb6f96d6d9e177038628dc71bf2f45e5 Mon Sep 17 00:00:00 2001 From: Kevin Yonan Date: Wed, 17 Jul 2019 07:44:15 -0700 Subject: [PATCH] Updated raylib memory pool (markdown) --- raylib-memory-pool.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/raylib-memory-pool.md b/raylib-memory-pool.md index c0e0bf8..492bcbb 100644 --- a/raylib-memory-pool.md +++ b/raylib-memory-pool.md @@ -87,7 +87,7 @@ To allocate from the pool, we have two functions: ``` `MemPool_Realloc` works similar but it takes an existing pointers and resizes its data, it does NOT zero the memory as it exists for resizing existing data. Please note that if you resize a smaller size, the data WILL BE TRUNCATED/CUT OFF. -If the `ptr` argument for `MemPool_Realloc`, it will work just like a call to `MemPool_Alloc`. +If the `ptr` argument for `MemPool_Realloc` is `NULL`, it will work just like a call to `MemPool_Alloc`. ```c // allocate an int pointer. int *i = MemPool_Realloc(&pool, NULL, sizeof *i);