mirror of https://github.com/perkeep/perkeep.git
syncutil: fix Group.Errs doc
This commit is contained in:
parent
08dd9561f9
commit
beac5cd5f5
|
@ -56,8 +56,8 @@ func (g *Group) Err() error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// Err waits for all previous calls to Go to complete and returns the
|
// Errs waits for all previous calls to Go to complete and returns
|
||||||
// first non-nil error, or nil.
|
// all non-nil errors.
|
||||||
func (g *Group) Errs() []error {
|
func (g *Group) Errs() []error {
|
||||||
g.wg.Wait()
|
g.wg.Wait()
|
||||||
return g.errs
|
return g.errs
|
||||||
|
|
Loading…
Reference in New Issue