diff --git a/errgroup/group.go b/errgroup/group.go index a583022..ca7e738 100644 --- a/errgroup/group.go +++ b/errgroup/group.go @@ -24,7 +24,8 @@ type Group struct { // WithContext returns a new Group and an associated context.Context derived // from ctx. Unlike golang.org/x/sync/errgroup.Group, the derived context is not -// canceled the first time a function passed to Go returns a non-nil error. +// canceled the first time a function passed to Group.Go returns a non-nil +// error. func WithContext(ctx context.Context) (*Group, context.Context) { ctx, cancel := context.WithCancelCause(ctx) return &Group{cancel: cancel}, ctx