Commit 14f57a2 1 parent b6bf7ca commit 14f57a2 Copy full SHA for 14f57a2
File tree 4 files changed +6
-6
lines changed
_examples/decoratorsOnTop
4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ func main() {
15
15
total := 100
16
16
bar := p .New (int64 (total ),
17
17
mpb .NopStyle (), // make main bar style nop, so there are just decorators
18
- mpb .BarExtender (extended (mpb .BarStyle ().Build ()), false ), // extend wtih normal bar on the next line
18
+ mpb .BarExtender (extended (mpb .BarStyle ().Build ()), false ), // extend with normal bar on the next line
19
19
mpb .PrependDecorators (
20
20
decor .Name ("Percentage: " ),
21
21
decor .NewPercentage ("%d" ),
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ func (b *Bar) ProxyWriter(w io.Writer) io.WriteCloser {
117
117
}
118
118
}
119
119
120
- // ID returs id of the bar.
120
+ // ID returns id of the bar.
121
121
func (b * Bar ) ID () int {
122
122
result := make (chan int )
123
123
select {
@@ -180,7 +180,7 @@ func (b *Bar) TraverseDecorators(cb func(decor.Decorator)) {
180
180
}
181
181
182
182
// EnableTriggerComplete enables triggering complete event. It's effective
183
- // only for bars which were constructed with `total <= 0`. If `curren >= total`
183
+ // only for bars which were constructed with `total <= 0`. If `current >= total`
184
184
// at the moment of call, complete event is triggered right away.
185
185
func (b * Bar ) EnableTriggerComplete () {
186
186
select {
@@ -493,7 +493,7 @@ func (b *Bar) wSyncTable() syncTable {
493
493
func (s * bState ) draw (stat decor.Statistics ) (_ io.Reader , err error ) {
494
494
decorFiller := func (buf * bytes.Buffer , decorators []decor.Decorator ) (err error ) {
495
495
for _ , d := range decorators {
496
- // need to call Decor in any case becase of width synchronization
496
+ // need to call Decor in any case because of width synchronization
497
497
str , width := d .Decor (stat )
498
498
if err != nil {
499
499
continue
Original file line number Diff line number Diff line change 15
15
_ AverageDecorator = (* averageETA )(nil )
16
16
)
17
17
18
- // TimeNormalizer interface. Implementors could be passed into
18
+ // TimeNormalizer interface. Implementers could be passed into
19
19
// MovingAverageETA, in order to affect i.e. normalize its output.
20
20
type TimeNormalizer interface {
21
21
Normalize (time.Duration ) time.Duration
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ type pState struct {
39
39
idCount int
40
40
popPriority int
41
41
42
- // following are provided/overrided by user
42
+ // following are provided/overrode by user
43
43
hmQueueLen int
44
44
reqWidth int
45
45
refreshRate time.Duration
You can’t perform that action at this time.
0 commit comments