diff --git a/bar.go b/bar.go index 80a6f74..dd244ff 100644 --- a/bar.go +++ b/bar.go @@ -38,7 +38,7 @@ done chan struct{} shutdown chan struct{} - // it's guaranted that cacheState isn't nil, after done channel is closed + // it's guaranteed that cacheState isn't nil, after done is closed cacheState *bState } diff --git a/progress.go b/progress.go index 2157b24..e7ab8c6 100644 --- a/progress.go +++ b/progress.go @@ -130,7 +130,7 @@ // Wait first waits for all bars to complete, then waits for user provided WaitGroup, if any. // It's optional to call, in other words if you don't call Progress.Wait(), -// it's not guaranted that all bars will be flushed completely to the underlying io.Writer. +// it's not guaranteed that all bars will be flushed completely to the underlying io.Writer. func (p *Progress) Wait() { <-p.done }