Name the fields mu guards

This commit is contained in:
2026-09-29 04:42:36 +02:00
committed by Lillem4n
parent 6bd2b155d2
commit 83f8c45493
+1 -1
View File
@@ -30,7 +30,7 @@ var ErrNoData = errors.New("no data: WithoutShippedData needs at least one WithD
// It is safe for concurrent use; a seeded sequence is reproducible only when drawn // It is safe for concurrent use; a seeded sequence is reproducible only when drawn
// from one goroutine. // from one goroutine.
type Generator struct { type Generator struct {
// mu guards what a render touches. The tree under root is fixed after New bar each // mu guards rand, records and structs. The tree under root is fixed after New bar each
// table's row lookup, built under its sync.Once, so List, NewTemplate and // table's row lookup, built under its sync.Once, so List, NewTemplate and
// NewRecordTemplate read it without mu. // NewRecordTemplate read it without mu.
mu sync.Mutex mu sync.Mutex