Skip to content

Commit 8dd4aee

Browse files
committed
fix: markdown code block format
Signed-off-by: Kohei Morita <[email protected]>
1 parent a9a7017 commit 8dd4aee

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

options.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -232,19 +232,17 @@ func Context(ctx context.Context) Option {
232232
//
233233
// example of augmenting time.After with a print statement
234234
//
235-
// type struct MyTimer {}
235+
// type struct MyTimer {}
236236
//
237237
// func (t *MyTimer) After(d time.Duration) <- chan time.Time {
238238
// fmt.Print("Timer called!")
239239
// return time.After(d)
240240
// }
241241
//
242-
// retry.Do(
243-
//
242+
// retry.Do(
244243
// func() error { ... },
245244
// retry.WithTimer(&MyTimer{})
246-
//
247-
// )
245+
// )
248246
func WithTimer(t Timer) Option {
249247
return func(c *Config) {
250248
c.timer = t

0 commit comments

Comments
 (0)