Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
flowchartsman committed May 15, 2018
1 parent e37dc00 commit d2f827b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions retry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func TestStopStopsImmediately(t *testing.T) {
}
}

func ExampleRun() {
func ExampleRetrier_Run() {
retrier := NewRetrier(5, 50, 50)
err := retrier.Run(func() error {
resp, err := http.Get("http://golang.org")
Expand All @@ -117,7 +117,7 @@ func ExampleRun() {
fmt.Println(err)
}

func ExampleDoWithContext_output() {
func ExampleRetrier_RunContext_output() {
retrier := NewRetrier(5, 50, 50)
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Millisecond)
defer cancel()
Expand Down

0 comments on commit d2f827b

Please sign in to comment.