From 83f8c4549365fba0233e79fae13ac23bf2049e4a Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Tue, 29 Sep 2026 04:42:36 +0200 Subject: [PATCH] Name the fields mu guards --- fejkdata.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fejkdata.go b/fejkdata.go index d913c5f..d13a7be 100644 --- a/fejkdata.go +++ b/fejkdata.go @@ -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 // from one goroutine. 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 // NewRecordTemplate read it without mu. mu sync.Mutex