diff --git a/README.md b/README.md index 5040d41..5ae2e24 100644 --- a/README.md +++ b/README.md @@ -292,10 +292,12 @@ ok, err := fejkdata.IsTemplate(arg) // an inline template by its shape, el | `WithoutShippedData()` | load only what you give | `New` refuses a mistake in the data, and `NewTemplate` one in the template. On a loaded -generator, each with the same error every call: +generator: -- `Fake` fails only for a path that names nothing or could name two things. -- `FakeStruct` fails only for a non-struct argument or a type its tags do not describe. +- `Fake` fails only for a path that names nothing or could name two things, with the + same error every call. +- `FakeStruct` fails only for a non-struct argument or a type its tags do not describe, + with the same error every call. - `Template.Fake` cannot fail. A `*Record` carries its columns via `Columns()` — each a `Column` of `Name`, diff --git a/todo.md b/todo.md index 2357157..859ac9a 100644 --- a/todo.md +++ b/todo.md @@ -211,7 +211,8 @@ by a `data-import/` script, as README goal 12 asks. - Report every mistake a load finds in one error, as the decision "A load reports every mistake at once" states: `New` and `NewTemplate` stop at the first, so data holding two mistakes takes two runs to fix. Split it into sub-items before starting, one of - them the shape a Go caller iterates and the CLI prints, and reword the README's + them the shape a Go caller iterates and the CLI prints, and the order of an + inline template's mistakes, which name no path; reword the README's "`New` refuses a mistake in the data" to every mistake. - Rename `newRand` to `newGeneratorState` and `Generator.rand` to `state`: both name half of a `generatorState`, hiding its `{seq()}` counters, and `New`'s local `rng`