Give dir, path, structs and r one meaning each, and name the table option indexes keyIndex through parentIndex
This commit is contained in:
+1
-1
@@ -77,7 +77,7 @@ func tableFacts(t *table) string {
|
||||
for _, o := range []struct {
|
||||
name string
|
||||
col int
|
||||
}{{"key", t.keyCol}, {"name", t.nameCol}, {"weight", t.weightCol}, {"parent", t.parentCol}} {
|
||||
}{{"key", t.keyIndex}, {"name", t.nameIndex}, {"weight", t.weightIndex}, {"parent", t.parentIndex}} {
|
||||
if o.col >= 0 {
|
||||
b.WriteString("\t" + o.name + " " + t.header[o.col])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user