diff options
| author | cui fliter <imcusg@gmail.com> | 2024-03-22 23:31:44 +0800 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2024-03-26 19:58:28 +0000 |
| commit | 1e12eab8705d1d8d7472be9147a39caa1c8380db (patch) | |
| tree | cde9e173c3e757516f56f9e66c41065513738832 /src/os/exec | |
| parent | 4217877670e94b88ddd1ee1041b31d5825b08e2a (diff) | |
| download | go-1e12eab8705d1d8d7472be9147a39caa1c8380db.tar.xz | |
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 <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
Run-TryBot: shuang cui <imcusg@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Diffstat (limited to 'src/os/exec')
| -rw-r--r-- | src/os/exec/exec.go | 2 | ||||
| -rw-r--r-- | src/os/exec/exec_test.go | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/os/exec/exec.go b/src/os/exec/exec.go index ee57ac4771..35e4e7e792 100644 --- a/src/os/exec/exec.go +++ b/src/os/exec/exec.go @@ -777,7 +777,7 @@ func (c *Cmd) watchCtx(resultc chan<- ctxResult) { } else if errors.Is(interruptErr, os.ErrProcessDone) { // The process already finished: we just didn't notice it yet. // (Perhaps c.Wait hadn't been called, or perhaps it happened to race with - // c.ctx being cancelled.) Don't inject a needless error. + // c.ctx being canceled.) Don't inject a needless error. } else { err = wrappedError{ prefix: "exec: canceling Cmd", 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. |
