aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhopehook <hopehook.com@gmail.com>2022-07-30 22:11:32 +0800
committerGopher Robot <gobot@golang.org>2022-07-30 16:04:50 +0000
commitf32519e5fbcf1b12f9654a6175e5e72b09ae8f3a (patch)
tree7167188759fb681006e8c1e75599cedcdf7e3d57
parent9a2001a8cc75b1ceda17da828edcee93c9d9f42c (diff)
downloadgo-f32519e5fbcf1b12f9654a6175e5e72b09ae8f3a.tar.gz
go-f32519e5fbcf1b12f9654a6175e5e72b09ae8f3a.zip
runtime: fix typos
Change-Id: I30c125be6cb321aa03ea827bd11c3169087e3d4c Reviewed-on: https://go-review.googlesource.com/c/go/+/420314 Auto-Submit: Ian Lance Taylor <iant@google.com> Reviewed-by: Keith Randall <khr@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@google.com> Run-TryBot: Ian Lance Taylor <iant@google.com>
-rw-r--r--src/runtime/chan.go2
-rw-r--r--src/runtime/testdata/testprog/vdso.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/chan.go b/src/runtime/chan.go
index 993af7063b..ca516ad9e8 100644
--- a/src/runtime/chan.go
+++ b/src/runtime/chan.go
@@ -780,7 +780,7 @@ func (q *waitq) dequeue() *sudog {
} else {
y.prev = nil
q.first = y
- sgp.next = nil // mark as removed (see dequeueSudog)
+ sgp.next = nil // mark as removed (see dequeueSudoG)
}
// if a goroutine was put on this queue because of a
diff --git a/src/runtime/testdata/testprog/vdso.go b/src/runtime/testdata/testprog/vdso.go
index d2a300d8f2..b18bc74a06 100644
--- a/src/runtime/testdata/testprog/vdso.go
+++ b/src/runtime/testdata/testprog/vdso.go
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-// Invoke signal hander in the VDSO context (see issue 32912).
+// Invoke signal handler in the VDSO context (see issue 32912).
package main