From 57d9902214b4bf7a0b6cb9d48294574f5df45cb0 Mon Sep 17 00:00:00 2001 From: "M. J. Fromberger" Date: Sat, 19 Oct 2024 13:26:43 -0700 Subject: [PATCH] taskgroup: correct comment wording --- single.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/single.go b/single.go index e92aac9..7cfa583 100644 --- a/single.go +++ b/single.go @@ -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)