]> Cypherpunks repositories - gostls13.git/commitdiff
all: fix some typos in comments
authorracequite <quiterace@gmail.com>
Tue, 23 Apr 2024 11:45:49 +0000 (11:45 +0000)
committerGopher Robot <gobot@golang.org>
Tue, 23 Apr 2024 16:37:32 +0000 (16:37 +0000)
This change fixes some typographic errors that I found in various packages.

Change-Id: Ie2d0316f0137d6521496d389a9777659ae22128b
GitHub-Last-Rev: 0307b03d50f664a00a4afa5afa08a35efb7f3045
GitHub-Pull-Request: golang/go#66917
Reviewed-on: https://go-review.googlesource.com/c/go/+/580077
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Rob Pike <r@golang.org>
Reviewed-by: Emmanuel Odeke <emmanuel@orijtech.com>
Commit-Queue: Ian Lance Taylor <iant@golang.org>
Auto-Submit: Ian Lance Taylor <iant@golang.org>

src/internal/concurrent/hashtriemap.go
src/net/http/cookiejar/jar.go
src/os/path_windows_test.go

index 348e3b6c4740b1c29e6c59c17682457ad77e3de3..5e3102349469d1cffafcbbefea98b14eb20ec137 100644 (file)
@@ -306,7 +306,7 @@ const (
        // 16 children. This seems to be the sweet spot for
        // load performance: any smaller and we lose out on
        // 50% or more in CPU performance. Any larger and the
-       // returns are miniscule (~1% improvement for 32 children).
+       // returns are minuscule (~1% improvement for 32 children).
        nChildrenLog2 = 4
        nChildren     = 1 << nChildrenLog2
        nChildrenMask = nChildren - 1
index 280f4650c1815f01ddfb0184e3e15b5efd98739d..b09dea2d44aea5c8b9fc2958e7a1ccd405762c0b 100644 (file)
@@ -367,7 +367,7 @@ func isIP(host string) bool {
                // Probable IPv6 address.
                // Hostnames can't contain : or %, so this is definitely not a valid host.
                // Treating it as an IP is the more conservative option, and avoids the risk
-               // of interpeting ::1%.www.example.com as a subtomain of www.example.com.
+               // of interpreting ::1%.www.example.com as a subdomain of www.example.com.
                return true
        }
        return net.ParseIP(host) != nil
index b37cae52b366ce91421ee5e7e5c209169c33bd26..0b5d7099f65788b33a7565d2125b1ea89e121f6b 100644 (file)
@@ -30,7 +30,7 @@ func TestAddExtendedPrefix(t *testing.T) {
        // (256) and thus requires fixLongPath to be correctly interpreted in I/O syscalls.
        veryLong := "l" + strings.Repeat("o", 500) + "ng"
        for _, test := range []struct{ in, want string }{
-               // Testcases use word subsitutions:
+               // Test cases use word substitutions:
                //   * "long" is replaced with a very long pathname
                //   * "c:" or "C:" are replaced with the drive of the current directory (preserving case)
                //   * "cwd" is replaced with the current directory