Rename eachToken to eachScanUnit, and narrow generatorState to draw state

This commit is contained in:
2026-09-29 12:34:36 +02:00
committed by Lillem4n
parent 14194a775d
commit 186443f883
2 changed files with 24 additions and 24 deletions
+2 -2
View File
@@ -40,8 +40,8 @@ type Generator struct {
structs map[reflect.Type]structResult
}
// generatorState is one generator's state across its renders: the seeded rng plus the {seq()}
// counters.
// generatorState is one generator's draw state, kept across its renders: the seeded rng plus
// the {seq()} counters.
type generatorState struct {
*rand.Rand
counters map[string]uint64