From: AN Long Date: Thu, 25 Sep 2025 14:38:19 +0000 (+0900) Subject: all: fix typos X-Git-Tag: go1.26rc1~762 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=34e67623a81e9e93c3d7d0f0cb257d7d722939f2;p=gostls13.git all: fix typos Change-Id: I290812905b6b5c52f289f7f8524f93aef19e6efe Reviewed-on: https://go-review.googlesource.com/c/go/+/706775 Auto-Submit: Sean Liao Reviewed-by: Michael Knyszek LUCI-TryBot-Result: Go LUCI Reviewed-by: Roland Shoemaker Reviewed-by: Sean Liao --- diff --git a/src/crypto/tls/handshake_server_tls13.go b/src/crypto/tls/handshake_server_tls13.go index dbbdb5d6a2..c5b0552cae 100644 --- a/src/crypto/tls/handshake_server_tls13.go +++ b/src/crypto/tls/handshake_server_tls13.go @@ -35,7 +35,7 @@ type echServerContext struct { configID uint8 ciphersuite echCipher 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. // We don't do any additional processing of the hello in this case, so all // fields above are unset. diff --git a/src/internal/runtime/gc/scan.go b/src/internal/runtime/gc/scan.go index 066a32151a..863a4bf0f3 100644 --- a/src/internal/runtime/gc/scan.go +++ b/src/internal/runtime/gc/scan.go @@ -8,7 +8,7 @@ import "internal/goarch" // 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 // PtrMask is a bitmap where each bit represents a pointer-word in a single runtime page. diff --git a/src/internal/runtime/gc/scan/expand_reference.go b/src/internal/runtime/gc/scan/expand_reference.go index 45446528d7..dd23f4fc10 100644 --- a/src/internal/runtime/gc/scan/expand_reference.go +++ b/src/internal/runtime/gc/scan/expand_reference.go @@ -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. // We're only concerned with small objects in single-page spans, // and gc.PtrMask enforces this by being statically sized to - // accomodate only such spans. + // accommodate only such spans. size := uintptr(gc.SizeClassToSize[sizeClass]) nObj := uintptr(gc.SizeClassToNPages[sizeClass]) * gc.PageSize / size diff --git a/src/runtime/runtime-gdb_test.go b/src/runtime/runtime-gdb_test.go index e81efadeb3..47d125bd67 100644 --- a/src/runtime/runtime-gdb_test.go +++ b/src/runtime/runtime-gdb_test.go @@ -77,7 +77,7 @@ func checkGdbVersion(t *testing.T) { t.Skipf("skipping: gdb version %d.%d too old", major, minor) } 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) }