Skip to content

Commit

Permalink
taskgroup: correct comment wording
Browse files Browse the repository at this point in the history
  • Loading branch information
creachadair committed Oct 19, 2024
1 parent 038fcca commit 57d9902
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion single.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func (s *Single[T]) Wait() T {
}

// Go runs task in a new goroutine. The caller must call Wait to wait for the
// task to return and collect its error.
// task to return and collect its value.
func Go[T any](task func() T) *Single[T] {
// N.B. This is closed by Wait.
valc := make(chan T, 1)
Expand Down

0 comments on commit 57d9902

Please sign in to comment.