浏览代码

fix comment in `progress.go`

Jeffrey Morgan 1 年之前
父节点
当前提交
258addc799
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      progress/progress.go

+ 1 - 1
progress/progress.go

@@ -51,7 +51,7 @@ func (p *Progress) StopAndClear() bool {
 
 
 	stopped := p.Stop()
 	stopped := p.Stop()
 	if stopped {
 	if stopped {
-		// clear the progress bar by:
+		// clear all progress lines
 		for i := 0; i < p.pos; i++ {
 		for i := 0; i < p.pos; i++ {
 			fmt.Fprint(p.w, "\033[A\033[2K\033[1G")
 			fmt.Fprint(p.w, "\033[A\033[2K\033[1G")
 		}
 		}