Answer prose round 2: the maintainer's approval beside the list it covers, Facts and compileInto docs naming what they read, and "the folder that dir names"

This commit is contained in:
2026-10-05 16:01:18 +02:00
committed by Lillem4n
parent 643efc8650
commit c55b296385
5 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -25,7 +25,7 @@ func loadData(sources []datafiles.Source) (map[string]node, error) {
return root, nil
}
// compileInto compiles each category it is handed into the folder place finds for its dir.
// compileInto compiles each category it is handed into the folder place returns for its Folders.
func compileInto(place func(dir []string) *folder) func(datafiles.Category) error {
return func(c datafiles.Category) error {
n, err := compileCategory(c.JSON, c.Name, c.ReadRows)
@@ -37,7 +37,7 @@ func compileInto(place func(dir []string) *folder) func(datafiles.Category) erro
}
}
// madeFolder is the folder dir names under root, made where it is missing or a category.
// madeFolder is the folder that dir names under root, made where it is missing or a category.
func madeFolder(root *folder, dir []string) *folder {
g := root
for _, seg := range dir {