fixed singluar/plural agreement in an error message generated by the let command
This commit is contained in:
parent
2035442a9f
commit
1d86e5a9c7
|
|
@ -199,11 +199,14 @@ void com_let(wordlist *wl)
|
|||
|
||||
/* Check # elem required vs available */
|
||||
if (n_dst_elem != vec_src->v_length) {
|
||||
const int v_length = vec_src->v_length;
|
||||
const bool f_1 = v_length == 1;
|
||||
(void) fprintf(cp_err, "Data for an index vector must "
|
||||
"fit exactly. The indexed range required %d "
|
||||
"elements to fill it, but there were %d "
|
||||
"elements supplied.\n",
|
||||
n_dst_elem, vec_src->v_length);
|
||||
"element%s to fill it, but there %s %d "
|
||||
"element%s supplied.\n",
|
||||
n_dst_elem, n_dst_elem == 1 ? "" : "s",
|
||||
f_1 ? "was" : "were", v_length, f_1 ? "" : "s");
|
||||
goto quit;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue