diff --git a/bar.go b/bar.go index 325a632..d0de65d 100644 --- a/bar.go +++ b/bar.go @@ -292,7 +292,7 @@ } } -func (b *Bar) updateState(cb func(s *state)) { +func (b *Bar) updateState(cb func(*state)) { s := b.getState() cb(&s) select { diff --git a/progress.go b/progress.go index 237e5a1..9f587c8 100644 --- a/progress.go +++ b/progress.go @@ -227,7 +227,7 @@ } } -func (p *Progress) updateConf(cb func(c *userConf)) { +func (p *Progress) updateConf(cb func(*userConf)) { c := p.getConf() cb(&c) select {