This commit is contained in:
Deinerovych 2024-10-29 15:13:08 +01:00
parent 23cf99cf01
commit cef3425769

View File

@ -39,7 +39,7 @@ void check_brackets(const char *code) {
return; return;
} }
if (!is_matching_pair(stack[top], ch)) { if (!is_matching_pair(stack[top], ch)) {
printf("Crossed bracket %c in %d, expected %c\n", ch, i, matching_close(stack[top])); printf("Crossed bracket %c in %d, expected %c \n", ch, i, matching_close(stack[top]));
return; return;
} }
top--; top--;