fix: ✏️ typo

This commit is contained in:
Ahmet Kaan GÜMÜŞ 2024-07-06 23:01:34 +03:00
parent c40837b156
commit 441fca3e2d
2 changed files with 4 additions and 4 deletions

View file

@ -74,7 +74,7 @@ int main() {
push(&stack, 5); push(&stack, 5);
int* value_ptr = get(&stack, 0); int* value_ptr = get(&stack, 0);
if (!value_ptr) { if (!value_ptr) {
printf("NonValid Index\n"); printf("Invalid Index\n");
return -1; return -1;
} }
printf("%d\n", *value_ptr); printf("%d\n", *value_ptr);
@ -90,7 +90,7 @@ int main() {
int* popped = pop(&stack); int* popped = pop(&stack);
if(!popped) { if(!popped) {
printf("Couldn't Popped"); printf("Couldn't Pop");
return -1; return -1;
} }

View file

@ -67,7 +67,7 @@ int main() {
push(&stack, 5); push(&stack, 5);
int* value_ptr = get(&stack, 0); int* value_ptr = get(&stack, 0);
if (!value_ptr) { if (!value_ptr) {
printf("NonValid Index\n"); printf("Invalid Index\n");
return -1; return -1;
} }
printf("%d\n", *value_ptr); printf("%d\n", *value_ptr);
@ -83,7 +83,7 @@ int main() {
int* popped = pop(&stack); int* popped = pop(&stack);
if(!popped) { if(!popped) {
printf("Couldn't Popped"); printf("Couldn't Pop");
return -1; return -1;
} }