diff --git a/README.md b/README.md index 3604e38..afe13f0 100644 --- a/README.md +++ b/README.md @@ -45,11 +45,10 @@ mpb.PrependDecorators( // Display our name with one space on the right decor.Name(name, decor.WC{W: len(name) + 1, C: decor.DidentRight}), - // Replace ETA decorator with message, OnComplete event + // Replace ETA decorator with "done" message, OnComplete event decor.OnComplete( // ETA decorator with default eta age, and width reservation of 4 - decor.ETA(decor.ET_STYLE_GO, 0, startBlock, decor.WC{W: 4}), - "done", + decor.ETA(decor.ET_STYLE_GO, 0, startBlock, decor.WC{W: 4}), "done", ), ), mpb.AppendDecorators( @@ -88,10 +87,10 @@ decor.Percentage(decor.WCSyncWidth), ), mpb.AppendDecorators( - // Replace ETA decorator with message, OnComplete event + // Replace ETA decorator with "done" message, OnComplete event decor.OnComplete( // ETA decorator with default eta age, and width reservation of 3 - decor.ETA(decor.ET_STYLE_GO, 0, startBlock, decor.WC{W: 3}), "done!", + decor.ETA(decor.ET_STYLE_GO, 0, startBlock, decor.WC{W: 3}), "done", ), ), ) diff --git a/examples/simple/main.go b/examples/simple/main.go index ff295db..0260271 100644 --- a/examples/simple/main.go +++ b/examples/simple/main.go @@ -31,10 +31,10 @@ decor.Percentage(decor.WCSyncWidth), ), mpb.AppendDecorators( - // Replace ETA decorator with message, OnComplete event + // Replace ETA decorator with "done" message, OnComplete event decor.OnComplete( // ETA decorator with default eta age, and width reservation of 3 - decor.ETA(decor.ET_STYLE_GO, 0, startBlock, decor.WC{W: 3}), "done!", + decor.ETA(decor.ET_STYLE_GO, 0, startBlock, decor.WC{W: 3}), "done", ), ), ) diff --git a/examples/singleBar/main.go b/examples/singleBar/main.go index 648ab40..597d4be 100644 --- a/examples/singleBar/main.go +++ b/examples/singleBar/main.go @@ -26,11 +26,10 @@ mpb.PrependDecorators( // Display our name with one space on the right decor.Name(name, decor.WC{W: len(name) + 1, C: decor.DidentRight}), - // Replace ETA decorator with message, OnComplete event + // Replace ETA decorator with "done" message, OnComplete event decor.OnComplete( // ETA decorator with default eta age, and width reservation of 4 - decor.ETA(decor.ET_STYLE_GO, 0, startBlock, decor.WC{W: 4}), - "done", + decor.ETA(decor.ET_STYLE_GO, 0, startBlock, decor.WC{W: 4}), "done", ), ), mpb.AppendDecorators(