summaryrefslogtreecommitdiff
path: root/lib/libc/src
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-06-22 21:08:08 -0400
committerIan Moffett <ian@osmora.org>2025-06-22 21:08:08 -0400
commitb4cd46b70da539c1d550cb4b5cabf6881c0e614a (patch)
treea6f2cf7c6b28eeeeef0bde8e8bea75ef274f359f /lib/libc/src
parent224eb85c88d7cdb442758adc6277bfd4a1c3a214 (diff)
libc: malloc: Fix typos in comment
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'lib/libc/src')
-rw-r--r--lib/libc/src/stdlib/malloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/src/stdlib/malloc.c b/lib/libc/src/stdlib/malloc.c
index ee7030d..883854d 100644
--- a/lib/libc/src/stdlib/malloc.c
+++ b/lib/libc/src/stdlib/malloc.c
@@ -69,9 +69,9 @@ static off_t heap_pos = 0;
* by bumping a pointer which is O(1). During this state, even after
* any calls to free(), we can assume that there is more memory ahead
* of us that is free (due to the initial zero-fragmentation). However,
- * once we've reached the end of the pool, if any memory has been previous
+ * once we've reached the end of the pool, if any memory has been previously
* freed (indicated by heap_len > 0), we can wrap the tail and start allocating
- * in a best-fit fasion as we assume that heap is now fragmented.
+ * in a best-fit fashion as we can assume that the heap is now fragmented.
*/
static bool wrap = false;