From 57569ace50ab8ce3d39e17ddf25ad161dffcc19d Mon Sep 17 00:00:00 2001 From: Jes Cok Date: Tue, 28 Oct 2025 18:47:17 +0800 Subject: [PATCH] runtime: amend comments a bit --- src/runtime/defer_test.go | 2 +- src/runtime/runtime2.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runtime/defer_test.go b/src/runtime/defer_test.go index e3d0d077685426..5431c51134258b 100644 --- a/src/runtime/defer_test.go +++ b/src/runtime/defer_test.go @@ -150,7 +150,7 @@ func TestAbortedPanic(t *testing.T) { // This tests that recover() does not succeed unless it is called directly from a // defer function that is directly called by the panic. Here, we first call it // from a defer function that is created by the defer function called directly by -// the panic. In +// the panic. func TestRecoverMatching(t *testing.T) { defer func() { r := recover() diff --git a/src/runtime/runtime2.go b/src/runtime/runtime2.go index eaf24fe908c5e4..721fae0b28b3c7 100644 --- a/src/runtime/runtime2.go +++ b/src/runtime/runtime2.go @@ -1352,7 +1352,7 @@ var ( // be atomic. Length may change at safe points. // // Each P must update only its own bit. In order to maintain - // consistency, a P going idle must the idle mask simultaneously with + // consistency, a P going idle must set the idle mask simultaneously with // updates to the idle P list under the sched.lock, otherwise a racing // pidleget may clear the mask before pidleput sets the mask, // corrupting the bitmap.