Skip to content

Commit

Permalink
Merge pull request #145 from kianmeng/fix-typos
Browse files Browse the repository at this point in the history
fix typos
  • Loading branch information
vbauerster authored Jan 27, 2025
2 parents b6bf7ca + c1e694c commit 86760b4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion _examples/decoratorsOnTop/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func main() {
total := 100
bar := p.New(int64(total),
mpb.NopStyle(), // make main bar style nop, so there are just decorators
mpb.BarExtender(extended(mpb.BarStyle().Build()), false), // extend wtih normal bar on the next line
mpb.BarExtender(extended(mpb.BarStyle().Build()), false), // extend with normal bar on the next line
mpb.PrependDecorators(
decor.Name("Percentage: "),
decor.NewPercentage("%d"),
Expand Down
6 changes: 3 additions & 3 deletions bar.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func (b *Bar) ProxyWriter(w io.Writer) io.WriteCloser {
}
}

// ID returs id of the bar.
// ID returns id of the bar.
func (b *Bar) ID() int {
result := make(chan int)
select {
Expand Down Expand Up @@ -180,7 +180,7 @@ func (b *Bar) TraverseDecorators(cb func(decor.Decorator)) {
}

// EnableTriggerComplete enables triggering complete event. It's effective
// only for bars which were constructed with `total <= 0`. If `curren >= total`
// only for bars which were constructed with `total <= 0`. If `current >= total`
// at the moment of call, complete event is triggered right away.
func (b *Bar) EnableTriggerComplete() {
select {
Expand Down Expand Up @@ -493,7 +493,7 @@ func (b *Bar) wSyncTable() syncTable {
func (s *bState) draw(stat decor.Statistics) (_ io.Reader, err error) {
decorFiller := func(buf *bytes.Buffer, decorators []decor.Decorator) (err error) {
for _, d := range decorators {
// need to call Decor in any case becase of width synchronization
// need to call Decor in any case because of width synchronization
str, width := d.Decor(stat)
if err != nil {
continue
Expand Down
2 changes: 1 addition & 1 deletion decor/eta.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ var (
_ AverageDecorator = (*averageETA)(nil)
)

// TimeNormalizer interface. Implementors could be passed into
// TimeNormalizer interface. Implementers could be passed into
// MovingAverageETA, in order to affect i.e. normalize its output.
type TimeNormalizer interface {
Normalize(time.Duration) time.Duration
Expand Down
2 changes: 1 addition & 1 deletion progress.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ type pState struct {
idCount int
popPriority int

// following are provided/overrided by user
// following are provided/overrode by user
hmQueueLen int
reqWidth int
refreshRate time.Duration
Expand Down

0 comments on commit 86760b4

Please sign in to comment.