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/os/exec/exec_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/os/exec/exec_test.go') diff --git a/src/os/exec/exec_test.go b/src/os/exec/exec_test.go index c4b89e0199..c749de99db 100644 --- a/src/os/exec/exec_test.go +++ b/src/os/exec/exec_test.go @@ -1366,7 +1366,7 @@ func TestWaitInterrupt(t *testing.T) { }) // With a very long WaitDelay and no Cancel function, we should wait for the - // process to exit even if the command's Context is cancelled. + // process to exit even if the command's Context is canceled. t.Run("WaitDelay", func(t *testing.T) { if runtime.GOOS == "windows" { t.Skipf("skipping: os.Interrupt is not implemented on Windows") @@ -1404,7 +1404,7 @@ func TestWaitInterrupt(t *testing.T) { } }) - // If the context is cancelled and the Cancel function sends os.Kill, + // If the context is canceled and the Cancel function sends os.Kill, // the process should be terminated immediately, and its output // pipes should be closed (causing Wait to return) after WaitDelay // even if a child process is still writing to them. -- cgit v1.3