Reword the bindOptions, parseInput and datatypeOf comments, the --help paragraph on blank stdin, and the empty-table and no-datatype errors

This commit is contained in:
2026-10-08 12:33:06 +02:00
committed by Lillem4n
parent 5c0ac105b4
commit 48e2b1ce9f
4 changed files with 9 additions and 11 deletions
+2 -2
View File
@@ -103,7 +103,7 @@ func (t *Table[O]) parseRows(data string) error {
t.col[name] = i
}
if header == data {
return fmt.Errorf("has no rows below its header; a table is at least one row")
return fmt.Errorf("has no rows below its header; a table holds at least one row")
}
m := len(t.header)
t.cells = make([]string, 0, m*(strings.Count(rest, "\n")+1))
@@ -139,7 +139,7 @@ func (t *Table[O]) appendRow(row string, line int) error {
}
// bindOptions resolves each option to its column, and proves what the options claim of the cells: a
// key is unique, a weight a positive number.
// key is unique, and a weight is a number of 0 or more.
func (t *Table[O]) bindOptions() error {
o := t.options
for _, opt := range []struct {