diff --git a/bar.go b/bar.go index 3ff91c0..ce7d11e 100644 --- a/bar.go +++ b/bar.go @@ -178,7 +178,9 @@ } // SetTotal sets total to an arbitrary value. Setting it to negative -// value is equivalent to (*Bar).SetTotal((*Bar).Current(), bool). +// value is equivalent to (*Bar).SetTotal((*Bar).Current(), bool). If +// triggerCompleteNow is true, current value is set to total and +// complete event is triggered right away. func (b *Bar) SetTotal(total int64, triggerCompleteNow bool) { select { case b.operateState <- func(s *bState) { diff --git a/progress.go b/progress.go index c0210ef..b32d998 100644 --- a/progress.go +++ b/progress.go @@ -106,8 +106,8 @@ } // Add creates a bar which renders itself by provided filler. -// If `total <= 0` trigger complete event is disabled until reset with (*bar).SetTotal(int64, bool). -// Panics if *Progress instance is done, i.e. called after (*Progress).Wait. +// If `total <= 0` triggering complete event by increment methods is disabled. +// Panics if (*Progress) instance is done, i.e. called after (*Progress).Wait(). func (p *Progress) Add(total int64, filler BarFiller, options ...BarOption) *Bar { if filler == nil { filler = NopStyle().Build()