From 1e12eab8705d1d8d7472be9147a39caa1c8380db Mon Sep 17 00:00:00 2001 From: cui fliter Date: Fri, 22 Mar 2024 23:31:44 +0800 Subject: all: fix a large number of comments Partial typo corrections, following https://go.dev/wiki/Spelling Change-Id: I2357906ff2ea04305c6357418e4e9556e20375d1 Reviewed-on: https://go-review.googlesource.com/c/go/+/573776 LUCI-TryBot-Result: Go LUCI TryBot-Result: Gopher Robot Reviewed-by: Than McIntosh Run-TryBot: shuang cui Reviewed-by: Ian Lance Taylor Auto-Submit: Ian Lance Taylor --- src/context/context.go | 2 +- src/context/x_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/context') diff --git a/src/context/context.go b/src/context/context.go index e95f553804..30adfe987d 100644 --- a/src/context/context.go +++ b/src/context/context.go @@ -295,7 +295,7 @@ func Cause(c Context) error { } // AfterFunc arranges to call f in its own goroutine after ctx is done -// (cancelled or timed out). +// (canceled or timed out). // If ctx is already done, AfterFunc calls f immediately in its own goroutine. // // Multiple calls to AfterFunc on a context operate independently; diff --git a/src/context/x_test.go b/src/context/x_test.go index e9b0576281..2c66ed42b2 100644 --- a/src/context/x_test.go +++ b/src/context/x_test.go @@ -1064,7 +1064,7 @@ func TestAfterFuncNotCalledAfterStop(t *testing.T) { } } -// This test verifies that cancelling a context does not block waiting for AfterFuncs to finish. +// This test verifies that canceling a context does not block waiting for AfterFuncs to finish. func TestAfterFuncCalledAsynchronously(t *testing.T) { ctx, cancel := WithCancel(Background()) donec := make(chan struct{}) -- cgit v1.3-5-g9baa