Skip to content

Commit

Permalink
Comply with rest examples
Browse files Browse the repository at this point in the history
  • Loading branch information
vbauerster committed May 23, 2017
1 parent d951b4a commit 194b772
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ func ExampleBar_InProgress() {
bar := p.AddBar(100).AppendPercentage(5, 0)

for bar.InProgress() {
bar.Incr(1)
time.Sleep(time.Millisecond * 20)
bar.Incr(1)
}
}

Expand All @@ -67,8 +67,8 @@ func ExampleBar_PrependFunc() {
go func() {
defer wg.Done()
for i := 0; i < totalItem; i++ {
bar.Incr(1)
time.Sleep(time.Duration(rand.Intn(totalItem)) * time.Millisecond)
bar.Incr(1)
}
}()
}
Expand Down Expand Up @@ -98,8 +98,8 @@ func ExampleBar_AppendFunc() {
go func() {
defer wg.Done()
for i := 0; i < totalItem; i++ {
bar.Incr(1)
time.Sleep(time.Duration(rand.Intn(totalItem)) * time.Millisecond)
bar.Incr(1)
}
}()
}
Expand Down

0 comments on commit 194b772

Please sign in to comment.