diff --git a/bar.go b/bar.go index ef43717..665d03d 100644 --- a/bar.go +++ b/bar.go @@ -150,8 +150,9 @@ } } -// SetRefill sets refill, if supported by underlying Filler. -// Useful for resume-able tasks. +// SetRefill fills bar with refill rune up to amount argument. +// Given default bar style is "[=>-]<+", refill rune is '+'. +// To set bar style use mpb.BarStyle(string) BarOption. func (b *Bar) SetRefill(amount int64) { type refiller interface { SetRefill(int64) diff --git a/bar_option.go b/bar_option.go index 1e446dc..aa90f99 100644 --- a/bar_option.go +++ b/bar_option.go @@ -130,7 +130,7 @@ // BarStyle overrides mpb.DefaultBarStyle, for example BarStyle("╢▌▌░╟"). // If you need to override `reverse tip` and `refill rune` set 6th and -// 7th rune respectively, for example BarStyle("[=>-]<+"). +// 7th rune respectively, for example mpb.BarStyle("[=>-]<+"). func BarStyle(style string) BarOption { if style == "" { return nil diff --git a/progress.go b/progress.go index 2ddda91..a366b92 100644 --- a/progress.go +++ b/progress.go @@ -166,7 +166,7 @@ } } -// UpdateBarPriority same as *Bar.SetPriority. +// UpdateBarPriority same as *Bar.SetPriority(int). func (p *Progress) UpdateBarPriority(b *Bar, priority int) { p.setBarPriority(b, priority) }