diff --git a/examples/complex/main.go b/examples/complex/main.go index 35b8707..9035d77 100644 --- a/examples/complex/main.go +++ b/examples/complex/main.go @@ -17,7 +17,7 @@ func main() { doneWg := new(sync.WaitGroup) p := mpb.New(mpb.WithWidth(64), mpb.WithWaitGroup(doneWg)) - numBars := 3 + numBars := 4 var bars []*mpb.Bar var downloadWgg []*sync.WaitGroup diff --git a/examples/singleBar/main.go b/examples/singleBar/main.go index 7876002..55038c3 100644 --- a/examples/singleBar/main.go +++ b/examples/singleBar/main.go @@ -26,7 +26,8 @@ // Display our static name with one space on the right decor.StaticName(name, len(name)+1, decor.DidentRight), // ETA decorator with width reservation of 3 runes - decor.ETA(3, 0), + // decor.ETA(3, 0), + decor.OnComplete(decor.ETA(4, 0), "done", 0, 0), ), mpb.AppendDecorators( // Percentage decorator with width reservation of 5 runes