Say in config.load only what New's godoc does not

This commit is contained in:
2026-10-03 17:52:37 +02:00
committed by Lillem4n
parent 590681ed24
commit a9eb337ec7
+2 -3
View File
@@ -104,9 +104,8 @@ func New(opts ...Option) (*Generator, error) {
return &Generator{rand: rng, root: root}, nil
}
// load is the tree New starts from. The shipped data set alone loads each category on the
// first call reaching it; beside any other source, every category loads here, so each
// mistake in that source is New's error.
// load is the tree New starts from: beside a source of the caller's, every category loads
// here, so each mistake in that source is New's error.
func (c config) load() (folder, error) {
if c.shipped && len(c.sources) == 0 {
return unloadedTree(), nil