From 9fbd0f64d86d616d9ce1a2636afac43001b22b7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E5=BF=97=E4=BC=9F?= Date: Mon, 29 Mar 2021 18:22:15 +0000 Subject: [PATCH] runtime: fix some typos Change-Id: I31f2081eb7c30a9583f479f9194e636fe721b9b3 GitHub-Last-Rev: d09f5fbdc5785dc3963b22ad75309740e0de258e GitHub-Pull-Request: golang/go#45278 Reviewed-on: https://go-review.googlesource.com/c/go/+/305231 Reviewed-by: Emmanuel Odeke Reviewed-by: Ian Lance Taylor Run-TryBot: Emmanuel Odeke TryBot-Result: Go Bot --- src/runtime/mgcwork.go | 2 +- src/runtime/proc.go | 2 +- src/runtime/sys_windows_arm.s | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/runtime/mgcwork.go b/src/runtime/mgcwork.go index b3a068661e..667c7afa97 100644 --- a/src/runtime/mgcwork.go +++ b/src/runtime/mgcwork.go @@ -398,7 +398,7 @@ func getempty() *workbuf { } // putempty puts a workbuf onto the work.empty list. -// Upon entry this go routine owns b. The lfstack.push relinquishes ownership. +// Upon entry this goroutine owns b. The lfstack.push relinquishes ownership. //go:nowritebarrier func putempty(b *workbuf) { b.checkempty() diff --git a/src/runtime/proc.go b/src/runtime/proc.go index 89d36321a6..c2edb40948 100644 --- a/src/runtime/proc.go +++ b/src/runtime/proc.go @@ -6231,7 +6231,7 @@ func doInit(t *initTask) { if inittrace.active { end := nanotime() - // Load stats non-atomically since tracinit is updated only by this init go routine. + // Load stats non-atomically since tracinit is updated only by this init goroutine. after := inittrace pkg := funcpkgpath(findfunc(funcPC(firstFunc))) diff --git a/src/runtime/sys_windows_arm.s b/src/runtime/sys_windows_arm.s index 275b827fcb..22c6d63bdd 100644 --- a/src/runtime/sys_windows_arm.s +++ b/src/runtime/sys_windows_arm.s @@ -157,7 +157,7 @@ g0: MOVW R2, 4(R13) // Move arg0 (ExceptionRecord) into position MOVW R3, 8(R13) // Move arg1 (ContextRecord) into position MOVW R5, 12(R13) // Move arg2 (original g) into position - BL (R7) // Call the go routine + BL (R7) // Call the goroutine MOVW 16(R13), R4 // Fetch return value from stack // Save system stack pointer for sigresume setup below.