ref: 35b4358b60d0afdff7e4599a9e625c0fc1580288
parent: b433062cdda93b2eb1c4331a953d1ee5fbbd2bb4
author: Ori Bernstein <ori@markovcorp.com>
date: Tue Apr 17 10:22:27 EDT 2018
Remove stray ',' from error message.
--- a/parse/infer.c
+++ b/parse/infer.c
@@ -981,10 +981,11 @@
n = 0;
*traitbuf = 0;
for (i = 0; bsiter(abs, &i); i++) {
- if (!bshas(bbs, i))
+ if (!bshas(bbs, i)) {
n += bprintf(traitbuf + n, sizeof(traitbuf) - n, "%s%s", sep,
- namestr(traittab[i]->name));
- sep = ",";
+ namestr(traittab[i]->name));
+ sep = ",";
+ }
}
tyfmt(abuf, sizeof abuf, a);
tyfmt(bbuf, sizeof bbuf, b);