Skip to content

Commit 14f57a2

Browse files
committed
fix typos
Found via `typos --hidden --format brief`
1 parent b6bf7ca commit 14f57a2

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

_examples/decoratorsOnTop/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ func main() {
1515
total := 100
1616
bar := p.New(int64(total),
1717
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
1919
mpb.PrependDecorators(
2020
decor.Name("Percentage: "),
2121
decor.NewPercentage("%d"),

bar.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ func (b *Bar) ProxyWriter(w io.Writer) io.WriteCloser {
117117
}
118118
}
119119

120-
// ID returs id of the bar.
120+
// ID returns id of the bar.
121121
func (b *Bar) ID() int {
122122
result := make(chan int)
123123
select {
@@ -180,7 +180,7 @@ func (b *Bar) TraverseDecorators(cb func(decor.Decorator)) {
180180
}
181181

182182
// 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`
184184
// at the moment of call, complete event is triggered right away.
185185
func (b *Bar) EnableTriggerComplete() {
186186
select {
@@ -493,7 +493,7 @@ func (b *Bar) wSyncTable() syncTable {
493493
func (s *bState) draw(stat decor.Statistics) (_ io.Reader, err error) {
494494
decorFiller := func(buf *bytes.Buffer, decorators []decor.Decorator) (err error) {
495495
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
497497
str, width := d.Decor(stat)
498498
if err != nil {
499499
continue

decor/eta.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ var (
1515
_ AverageDecorator = (*averageETA)(nil)
1616
)
1717

18-
// TimeNormalizer interface. Implementors could be passed into
18+
// TimeNormalizer interface. Implementers could be passed into
1919
// MovingAverageETA, in order to affect i.e. normalize its output.
2020
type TimeNormalizer interface {
2121
Normalize(time.Duration) time.Duration

progress.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ type pState struct {
3939
idCount int
4040
popPriority int
4141

42-
// following are provided/overrided by user
42+
// following are provided/overrode by user
4343
hmQueueLen int
4444
reqWidth int
4545
refreshRate time.Duration

0 commit comments

Comments
 (0)