fix duplicate suggestions and add missing newline

This commit is contained in:
Laytan
2024-05-09 19:21:39 +02:00
parent 8a1e7bb6fb
commit 98827c867d
2 changed files with 7 additions and 3 deletions

View File

@@ -6201,7 +6201,7 @@ gb_internal bool evaluate_where_clauses(CheckerContext *ctx, Ast *call_expr, Sco
error(c, "Prefer to separate 'where' clauses with a comma rather than '&&'");
gbString x = expr_to_string(c->BinaryExpr.left);
gbString y = expr_to_string(c->BinaryExpr.right);
error_line("\tSuggestion: '%s, %s'", x, y);
error_line("\tSuggestion: '%s, %s'\n", x, y);
gb_string_free(y);
gb_string_free(x);
}