minor: godoc edit
Vladimir Bauer
3 years ago
| 145 | 145 | // Add creates a bar which renders itself by provided BarFiller. |
| 146 | 146 | // If `total <= 0` triggering complete event by increment methods |
| 147 | 147 | // is disabled. If *Progress instance is done, i.e. called after |
| 148 | // (*Progress).Wait(), return err == DoneError. | |
| 148 | // (*Progress).Wait(), return error == DoneError. | |
| 149 | 149 | func (p *Progress) Add(total int64, filler BarFiller, options ...BarOption) (*Bar, error) { |
| 150 | 150 | if filler == nil { |
| 151 | 151 | filler = NopStyle().Build() |