diff --git a/mstate/unit.go b/mstate/unit.go
index <HASH>..<HASH> 100644
--- a/mstate/unit.go
+++ b/mstate/unit.go
@@ -20,9 +20,9 @@ type Unit struct {
 	doc unitDoc
 }
 
-func newUnit(s *State, udoc *unitDoc) *Unit {
+func newUnit(st *State, udoc *unitDoc) *Unit {
 	return &Unit{
-		st:  s,
+		st:  st,
 		doc: *udoc,
 	}
 }
mstate: s/s/st/ in newUnit.