diff --git a/bar.go b/bar.go index 1a101eb..a4a99ae 100644 --- a/bar.go +++ b/bar.go @@ -62,7 +62,7 @@ extender extenderFunc debugOut io.Writer - // afterBar is a key for *pState.parkedBars + // afterBar is a key for (*pState).queueBars afterBar *Bar } diff --git a/progress.go b/progress.go index fdb774e..5335594 100644 --- a/progress.go +++ b/progress.go @@ -61,13 +61,13 @@ } // New creates new Progress container instance. It's not possible to -// reuse instance after *Progress.Wait() method has been called. +// reuse instance after (*Progress).Wait method has been called. func New(options ...ContainerOption) *Progress { return NewWithContext(context.Background(), options...) } // NewWithContext creates new Progress container instance with provided -// context. It's not possible to reuse instance after *Progress.Wait() +// context. It's not possible to reuse instance after (*Progress).Wait // method has been called. func NewWithContext(ctx context.Context, options ...ContainerOption) *Progress { s := &pState{ @@ -114,7 +114,7 @@ // 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(). +// 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()