Skip to content

Commit

Permalink
better example names
Browse files Browse the repository at this point in the history
  • Loading branch information
vbauerster committed Feb 6, 2019
1 parent 7370f9d commit 62de562
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
File renamed without changes.
6 changes: 2 additions & 4 deletions _examples/sort/main.go → _examples/sortBars/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,9 @@ func main() {
wg.Add(numBars)

for i := 0; i < numBars; i++ {
var name string
if i != 1 {
name = fmt.Sprintf("Bar#%d:", i)
}
name := fmt.Sprintf("Bar#%d:", i)
b := p.AddBar(int64(total),
mpb.BarOptOnCond(mpb.BarWidth(40), func() bool { return i > 0 }),
mpb.PrependDecorators(
decor.Name(name, decor.WCSyncWidth),
decor.CountersNoUnit("%d / %d", decor.WCSyncSpace),
Expand Down
File renamed without changes.

0 comments on commit 62de562

Please sign in to comment.