// The parent is omitted if 0. The trailing comma is omitted from the
// last entry, but we don't need that much precision.
const (
- baseSize = len(`"`) + len (`":{"name":"`) + len(`"},`)
+ baseSize = len(`"`) + len(`":{"name":"`) + len(`"},`)
// Don't count the trailing quote on the name, as that is
// counted in baseSize.
oldState = info.state
}
if info.state != oldState && setGStateErr == nil {
- setGStateErr = fmt.Errorf("expected G %d to be in state %d, but got state %d", g, oldState, newState)
+ setGStateErr = fmt.Errorf("expected G %d to be in state %d, but got state %d", g, oldState, info.state)
}
ctx.gstates[info.state]--
ctx.gstates[newState]++