aboutsummaryrefslogtreecommitdiff
path: root/src/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime')
-rw-r--r--src/runtime/coverage/testsupport.go2
-rw-r--r--src/runtime/netpoll_windows.go4
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.