]> Cypherpunks.ru repositories - gostls13.git/commitdiff
context: fix doc tipo (s/timout/timeout)
authorIan Lance Taylor <iant@golang.org>
Tue, 6 Jun 2023 17:57:50 +0000 (10:57 -0700)
committerGopher Robot <gobot@golang.org>
Sun, 11 Jun 2023 00:33:08 +0000 (00:33 +0000)
Change-Id: Ib02b35887896eab418ba9dde764754538cb23b4f
Reviewed-on: https://go-review.googlesource.com/c/go/+/501277
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>

src/context/context.go

index 6135a3cd4772bb69a878e5463eca6eaf09157902..ee66b43c8500c7b0db6b79d645844560231625ab 100644 (file)
@@ -686,7 +686,7 @@ func WithTimeout(parent Context, timeout time.Duration) (Context, CancelFunc) {
 }
 
 // WithTimeoutCause behaves like [WithTimeout] but also sets the cause of the
-// returned Context when the timout expires. The returned [CancelFunc] does
+// returned Context when the timeout expires. The returned [CancelFunc] does
 // not set the cause.
 func WithTimeoutCause(parent Context, timeout time.Duration, cause error) (Context, CancelFunc) {
        return WithDeadlineCause(parent, time.Now().Add(timeout), cause)