Skip to content

Commit 7d0fc2b

Browse files
committed
docs: generate document
Signed-off-by: Kohei Morita <[email protected]>
1 parent 8dd4aee commit 7d0fc2b

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -355,19 +355,17 @@ wait for a set duration for retries.
355355
356356
example of augmenting time.After with a print statement
357357
358-
type struct MyTimer {}
358+
type struct MyTimer {}
359359
360360
func (t *MyTimer) After(d time.Duration) <- chan time.Time {
361361
fmt.Print("Timer called!")
362362
return time.After(d)
363363
}
364364
365-
retry.Do(
366-
365+
retry.Do(
367366
func() error { ... },
368367
retry.WithTimer(&MyTimer{})
369-
370-
)
368+
)
371369
372370
#### type RetryIfFunc
373371

0 commit comments

Comments
 (0)