errgroup: fix some typos in comment Change-Id: I3dd6df0eb2cc592f8811935cbcbca54a0d9304ce Reviewed-on: https://go-review.googlesource.com/c/sync/+/713400 Reviewed-by: Alan Donovan <adonovan@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: David Chase <drchase@google.com> Auto-Submit: Alan Donovan <adonovan@google.com>
diff --git a/errgroup/errgroup.go b/errgroup/errgroup.go index 1d8cffa..2f45dbc 100644 --- a/errgroup/errgroup.go +++ b/errgroup/errgroup.go
@@ -3,7 +3,7 @@ // license that can be found in the LICENSE file. // Package errgroup provides synchronization, error propagation, and Context -// cancelation for groups of goroutines working on subtasks of a common task. +// cancellation for groups of goroutines working on subtasks of a common task. // // [errgroup.Group] is related to [sync.WaitGroup] but adds handling of tasks // returning errors.
diff --git a/errgroup/errgroup_test.go b/errgroup/errgroup_test.go index 2a491bf..85008eb 100644 --- a/errgroup/errgroup_test.go +++ b/errgroup/errgroup_test.go
@@ -222,7 +222,7 @@ g.SetLimit(0) for i := 0; i < 1<<10; i++ { if g.TryGo(fn) { - t.Fatalf("TryGo should fail but got succeded.") + t.Fatalf("TryGo should fail but got succeeded.") } } g.Wait()