all: fix typos

Change-Id: I290812905b6b5c52f289f7f8524f93aef19e6efe
Reviewed-on: https://go-review.googlesource.com/c/go/+/706775
Auto-Submit: Sean Liao <sean@liao.dev>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Roland Shoemaker <roland@golang.org>
Reviewed-by: Sean Liao <sean@liao.dev>
This commit is contained in:
AN Long 2025-09-25 23:38:19 +09:00 committed by Gopher Robot
parent af6999e60d
commit 34e67623a8
4 changed files with 4 additions and 4 deletions

View file

@ -35,7 +35,7 @@ type echServerContext struct {
configID uint8 configID uint8
ciphersuite echCipher ciphersuite echCipher
transcript hash.Hash transcript hash.Hash
// inner indicates that the initial client_hello we recieved contained an // inner indicates that the initial client_hello we received contained an
// encrypted_client_hello extension that indicated it was an "inner" hello. // encrypted_client_hello extension that indicated it was an "inner" hello.
// We don't do any additional processing of the hello in this case, so all // We don't do any additional processing of the hello in this case, so all
// fields above are unset. // fields above are unset.

View file

@ -8,7 +8,7 @@ import "internal/goarch"
// ObjMask is a bitmap where each bit corresponds to an object in a span. // ObjMask is a bitmap where each bit corresponds to an object in a span.
// //
// It is sized to accomodate all size classes. // It is sized to accommodate all size classes.
type ObjMask [MaxObjsPerSpan / (goarch.PtrSize * 8)]uintptr type ObjMask [MaxObjsPerSpan / (goarch.PtrSize * 8)]uintptr
// PtrMask is a bitmap where each bit represents a pointer-word in a single runtime page. // PtrMask is a bitmap where each bit represents a pointer-word in a single runtime page.

View file

@ -16,7 +16,7 @@ func ExpandReference(sizeClass int, packed *gc.ObjMask, unpacked *gc.PtrMask) {
// Look up the size and derive the number of objects in a span. // Look up the size and derive the number of objects in a span.
// We're only concerned with small objects in single-page spans, // We're only concerned with small objects in single-page spans,
// and gc.PtrMask enforces this by being statically sized to // and gc.PtrMask enforces this by being statically sized to
// accomodate only such spans. // accommodate only such spans.
size := uintptr(gc.SizeClassToSize[sizeClass]) size := uintptr(gc.SizeClassToSize[sizeClass])
nObj := uintptr(gc.SizeClassToNPages[sizeClass]) * gc.PageSize / size nObj := uintptr(gc.SizeClassToNPages[sizeClass]) * gc.PageSize / size

View file

@ -77,7 +77,7 @@ func checkGdbVersion(t *testing.T) {
t.Skipf("skipping: gdb version %d.%d too old", major, minor) t.Skipf("skipping: gdb version %d.%d too old", major, minor)
} }
if major < 12 || (major == 12 && minor < 1) { if major < 12 || (major == 12 && minor < 1) {
t.Logf("gdb version <12.1 is known to crash due to a SIGWINCH recieved in non-interactive mode; if you see a crash, some test may be sending SIGWINCH to the whole process group. See go.dev/issue/58932.") t.Logf("gdb version <12.1 is known to crash due to a SIGWINCH received in non-interactive mode; if you see a crash, some test may be sending SIGWINCH to the whole process group. See go.dev/issue/58932.")
} }
t.Logf("gdb version %d.%d", major, minor) t.Logf("gdb version %d.%d", major, minor)
} }