Skip to content

Commit d595318

Browse files
callthingsoffrandall77
authored andcommitted
runtime: amend comments a bit
Change-Id: I3cabc57f6b8f803f966221f9583a5edb8828ca12 GitHub-Last-Rev: 57569ac GitHub-Pull-Request: golang#76086 Reviewed-on: https://go-review.googlesource.com/c/go/+/715600 Reviewed-by: Michael Pratt <[email protected]> Reviewed-by: Jorropo <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Keith Randall <[email protected]>
1 parent 12c8d14 commit d595318

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/runtime/defer_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ func TestAbortedPanic(t *testing.T) {
150150
// This tests that recover() does not succeed unless it is called directly from a
151151
// defer function that is directly called by the panic. Here, we first call it
152152
// from a defer function that is created by the defer function called directly by
153-
// the panic. In
153+
// the panic.
154154
func TestRecoverMatching(t *testing.T) {
155155
defer func() {
156156
r := recover()

src/runtime/runtime2.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1352,7 +1352,7 @@ var (
13521352
// be atomic. Length may change at safe points.
13531353
//
13541354
// Each P must update only its own bit. In order to maintain
1355-
// consistency, a P going idle must the idle mask simultaneously with
1355+
// consistency, a P going idle must set the idle mask simultaneously with
13561356
// updates to the idle P list under the sched.lock, otherwise a racing
13571357
// pidleget may clear the mask before pidleput sets the mask,
13581358
// corrupting the bitmap.

0 commit comments

Comments
 (0)