diff options
Diffstat (limited to 'lazy/init.go')
-rw-r--r-- | lazy/init.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lazy/init.go b/lazy/init.go index bfb9c4e07..9a25e1e05 100644 --- a/lazy/init.go +++ b/lazy/init.go @@ -73,7 +73,7 @@ func (ini *Init) Branch(initFn func(context.Context) (any, error)) *Init { return ini.add(true, initFn) } -// BranchdWithTimeout is same as Branch, but with a timeout. +// BranchWithTimeout is same as Branch, but with a timeout. func (ini *Init) BranchWithTimeout(timeout time.Duration, f func(ctx context.Context) (any, error)) *Init { return ini.Branch(func(ctx context.Context) (any, error) { return ini.withTimeout(ctx, timeout, f) |