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/runtime/coverage/testsupport.go | 2 +- src/runtime/netpoll_windows.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/runtime') 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. -- cgit v1.3-5-g9baa