syncutil: fix Group.Errs doc

This commit is contained in:
Brad Fitzpatrick 2014-01-09 11:21:05 -08:00
parent 08dd9561f9
commit beac5cd5f5
1 changed files with 2 additions and 2 deletions

View File

@ -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