fix grammatical error when allocating 1 byte
This commit is contained in:
parent
358e1ea2ff
commit
a8f3cccbd4
2
main.c
2
main.c
|
@ -105,7 +105,7 @@ int main() {
|
||||||
if (shorthand) {
|
if (shorthand) {
|
||||||
printf("%s (%llu bytes) of heap memory has been allocated. you are insane.\n", shorthand, size);
|
printf("%s (%llu bytes) of heap memory has been allocated. you are insane.\n", shorthand, size);
|
||||||
} else {
|
} 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);
|
free(shorthand);
|
||||||
printf("press ENTER to release this memory, or CTRL+C to exit the program.\n");
|
printf("press ENTER to release this memory, or CTRL+C to exit the program.\n");
|
||||||
|
|
Loading…
Reference in a new issue