diff --git a/decor/decorators.go b/decor/decorators.go index b93ee2d..5531ee3 100644 --- a/decor/decorators.go +++ b/decor/decorators.go @@ -63,7 +63,7 @@ // DynamicName to be used, when there is a plan to change the name once or // several times during progress rendering process. If there're more than one -// bar, and you'd like to synchronize column width, conf param shauld have +// bar, and you'd like to synchronize column width, conf param should have // DwidthSync bit set. func DynamicName(nameFn func(*Statistics) string, minWidth int, conf byte) DecoratorFunc { format := "%%" @@ -89,7 +89,7 @@ // Accepts pairFormat string, something like "%s / %s" to be used in // fmt.Sprintf(pairFormat, current, total) and one of (Unit_KiB/Unit_kB) // constant. If there're more than one bar, and you'd like to synchronize column -// width, conf param shauld have DwidthSync bit set. +// width, conf param should have DwidthSync bit set. func Counters(pairFormat string, unit Units, minWidth int, conf byte) DecoratorFunc { format := "%%" if (conf & DidentRight) != 0 { @@ -114,7 +114,7 @@ // ETA provides exponential-weighted-moving-average ETA decorator. // If there're more than one bar, and you'd like to synchronize column width, -// conf param shauld have DwidthSync bit set. +// conf param should have DwidthSync bit set. func ETA(minWidth int, conf byte) DecoratorFunc { format := "%%" if (conf & DidentRight) != 0 { @@ -137,7 +137,7 @@ // Elapsed provides elapsed time decorator. // If there're more than one bar, and you'd like to synchronize column width, -// conf param shauld have DwidthSync bit set. +// conf param should have DwidthSync bit set. func Elapsed(minWidth int, conf byte) DecoratorFunc { format := "%%" if (conf & DidentRight) != 0 { @@ -160,7 +160,7 @@ // Percentage provides percentage decorator. // If there're more than one bar, and you'd like to synchronize column width, -// conf param shauld have DwidthSync bit set. +// conf param should have DwidthSync bit set. func Percentage(minWidth int, conf byte) DecoratorFunc { format := "%%" if (conf & DidentRight) != 0 {