diff --git a/README.md b/README.md index 1acbb3b..a2b9f0a 100644 --- a/README.md +++ b/README.md @@ -88,6 +88,9 @@ bar := p.AddBar(int64(total), mpb.PrependDecorators( decor.StaticName(name, 0, 0), + // DSyncSpace is shortcut for DwidthSync|DextraSpace + // means sync the width of respective decorator's column + // and prepend one extra space. decor.Percentage(3, decor.DSyncSpace), ), mpb.AppendDecorators( diff --git a/examples/simple/main.go b/examples/simple/main.go index 0d472f2..60d7f8f 100644 --- a/examples/simple/main.go +++ b/examples/simple/main.go @@ -22,6 +22,9 @@ bar := p.AddBar(int64(total), mpb.PrependDecorators( decor.StaticName(name, 0, 0), + // DSyncSpace is shortcut for DwidthSync|DextraSpace + // means sync the width of respective decorator's column + // and prepend one extra space. decor.Percentage(3, decor.DSyncSpace), ), mpb.AppendDecorators(