diff --git a/README.md b/README.md index d445059..ea69ba6 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,7 @@ mpb.PrependDecorators( // StaticName decorator with minWidth and no width sync options // If you need to change name while rendering, use DynamicName - decor.Name(name, len(name), 0), + decor.StaticName(name, len(name), 0), // ETA decorator with minWidth and width sync options // DSyncSpace is shortcut for DwidthSync|DextraSpace decor.ETA(4, decor.DSyncSpace), diff --git a/example_test.go b/example_test.go index de19965..cea3ad7 100644 --- a/example_test.go +++ b/example_test.go @@ -27,7 +27,7 @@ mpb.PrependDecorators( // StaticName decorator with minWidth and no width sync options // If you need to change name while rendering, use DynamicName - decor.Name(name, len(name), 0), + decor.StaticName(name, len(name), 0), // ETA decorator with minWidth and width sync options // DSyncSpace is shortcut for DwidthSync|DextraSpace decor.ETA(4, decor.DSyncSpace),