s
This commit is contained in:
parent
9624010c7b
commit
e361e20fcf
@ -31,7 +31,7 @@ void check_brackets(const char *code) {
|
||||
if (top == -1) {
|
||||
printf("All brackets OK\n");
|
||||
} else {
|
||||
printf("Missing closing brackets: %c\n", stack[top]);
|
||||
printf("Missing closing brackets: %c\n", stack[top -1]);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user