From a8f3cccbd4e436cb71c38885da265c5861521357 Mon Sep 17 00:00:00 2001 From: ari melody Date: Mon, 12 Feb 2024 17:38:54 +0000 Subject: [PATCH] fix grammatical error when allocating 1 byte --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index 5825165..f640d29 100644 --- a/main.c +++ b/main.c @@ -105,7 +105,7 @@ int main() { if (shorthand) { printf("%s (%llu bytes) of heap memory has been allocated. you are insane.\n", shorthand, size); } else { - printf("%llu byte%c of heap memory have been allocated. you are insane.\n", size, size == 1 ? 0 : 's'); + printf("%llu byte%c of heap memory ha%s been allocated. you are insane.\n", size, size == 1 ? 0 : 's', size == 1 ? "s" : "ve"); } free(shorthand); printf("press ENTER to release this memory, or CTRL+C to exit the program.\n");