Skip to content

Commit 1966f53

Browse files
cuishuanggopherbot
authored andcommitted
errgroup: fix some typos in comment
Change-Id: I3dd6df0eb2cc592f8811935cbcbca54a0d9304ce Reviewed-on: https://go-review.googlesource.com/c/sync/+/713400 Reviewed-by: Alan Donovan <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: David Chase <[email protected]> Auto-Submit: Alan Donovan <[email protected]>
1 parent 04914c2 commit 1966f53

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

errgroup/errgroup.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// license that can be found in the LICENSE file.
44

55
// Package errgroup provides synchronization, error propagation, and Context
6-
// cancelation for groups of goroutines working on subtasks of a common task.
6+
// cancellation for groups of goroutines working on subtasks of a common task.
77
//
88
// [errgroup.Group] is related to [sync.WaitGroup] but adds handling of tasks
99
// returning errors.

errgroup/errgroup_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ func TestTryGo(t *testing.T) {
222222
g.SetLimit(0)
223223
for i := 0; i < 1<<10; i++ {
224224
if g.TryGo(fn) {
225-
t.Fatalf("TryGo should fail but got succeded.")
225+
t.Fatalf("TryGo should fail but got succeeded.")
226226
}
227227
}
228228
g.Wait()

0 commit comments

Comments
 (0)