Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ermanimer committed Dec 27, 2020
1 parent f66231d commit 4d2b9fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions progress_bar.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const (
//escape codes
const (
ecClearLine = "\u001b[2K"
ecMovecursorLeft = "\u001b[%dD"
ecMoveCursorLeft = "\u001b[%dD"
)

type ProgressBar struct {
Expand Down Expand Up @@ -130,7 +130,7 @@ func (pb *ProgressBar) print() {
//clear line and offset cursor
if pb.offset > 0 {
fmt.Fprint(pb.Output, ecClearLine)
fmt.Fprintf(pb.Output, ecMovecursorLeft, pb.offset)
fmt.Fprintf(pb.Output, ecMoveCursorLeft, pb.offset)
}
//print progress bar
fmt.Fprint(pb.Output, progressBar)
Expand Down

0 comments on commit 4d2b9fb

Please sign in to comment.