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/runtime | |
| 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/runtime')
| -rw-r--r-- | src/runtime/coverage/testsupport.go | 2 | ||||
| -rw-r--r-- | src/runtime/netpoll_windows.go | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/runtime/coverage/testsupport.go b/src/runtime/coverage/testsupport.go index a12b8589f0..4b00f3a0f7 100644 --- a/src/runtime/coverage/testsupport.go +++ b/src/runtime/coverage/testsupport.go @@ -247,7 +247,7 @@ type pkfunc struct { } func (ts *tstate) readAuxMetaFiles(metafiles string, importpaths map[string]struct{}) error { - // Unmarshall the information on available aux metafiles into + // Unmarshal the information on available aux metafiles into // a MetaFileCollection struct. var mfc coverage.MetaFileCollection data, err := os.ReadFile(metafiles) diff --git a/src/runtime/netpoll_windows.go b/src/runtime/netpoll_windows.go index 3f70429497..c3c10af723 100644 --- a/src/runtime/netpoll_windows.go +++ b/src/runtime/netpoll_windows.go @@ -249,7 +249,7 @@ func netpollQueueTimer(delay int64) (signaled bool) { // A wait completion packet can only be associated with one timer at a time, // so we need to cancel the previous one if it exists. This wouldn't be necessary // if the poller would only be woken up by the timer, in which case the association - // would be automatically cancelled, but it can also be woken up by other events, + // would be automatically canceled, but it can also be woken up by other events, // such as a netpollBreak, so we can get to this point with a timer that hasn't // expired yet. In this case, the completion packet can still be picked up by // another thread, so defer the cancellation until it is really necessary. @@ -271,7 +271,7 @@ func netpollQueueTimer(delay int64) (signaled bool) { throw("runtime: netpoll failed") } case STATUS_PENDING: - // STATUS_PENDING is returned if the wait operation can't be cancelled yet. + // STATUS_PENDING is returned if the wait operation can't be canceled yet. // This can happen if this thread was woken up by another event, such as a netpollBreak, // and the timer expired just while calling NtCancelWaitCompletionPacket, in which case // this call fails to cancel the association to avoid a race condition. |
