]> Cypherpunks repositories - gostls13.git/commitdiff
all: fix typos and remove repeated words
authorDan Kortschak <dan@kortschak.io>
Wed, 12 Jul 2023 12:56:57 +0000 (22:26 +0930)
committerGopher Robot <gobot@golang.org>
Wed, 12 Jul 2023 23:26:34 +0000 (23:26 +0000)
Change-Id: I5f06a4ef1d827eb0fe32a8d98444142108b0d573
Reviewed-on: https://go-review.googlesource.com/c/go/+/508996
Run-TryBot: Ian Lance Taylor <iant@google.com>
Auto-Submit: Keith Randall <khr@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Keith Randall <khr@google.com>
src/internal/coverage/cmerge/merge.go
src/internal/diff/diff.go
src/internal/testenv/exec.go
src/net/http/h2_bundle.go
src/runtime/metrics.go
src/runtime/mgcscavenge.go

index 16fa1e8c387927e24d5d5dccafc931b6bc5e4eb7..1339803d0865c6dc37ceadf4c3e2dc101e27da8f 100644 (file)
@@ -68,7 +68,7 @@ func (m *Merger) SaturatingAdd(dst, src uint32) uint32 {
        return result
 }
 
-// Saturating add does a saturing addition of 'dst' and 'src',
+// Saturating add does a saturating addition of 'dst' and 'src',
 // returning added value or math.MaxUint32 plus an overflow flag.
 func SaturatingAdd(dst, src uint32) (uint32, bool) {
        d, s := uint64(dst), uint64(src)
index 47b285671454ed9ace89cb7b24568abc47c48243..0aeeb75eb096cb90437ddb0800463f82a33d52bd 100644 (file)
@@ -76,7 +76,7 @@ func Diff(oldName string, old []byte, newName string, new []byte) []byte {
 
                // Expand matching lines as far possible,
                // establishing that x[start.x:end.x] == y[start.y:end.y].
-               // Note that on the first (or last) iteration we may (or definitey do)
+               // Note that on the first (or last) iteration we may (or definitely do)
                // have an empty match: start.x==end.x and start.y==end.y.
                start := m
                for start.x > done.x && start.y > done.y && x[start.x-1] == y[start.y-1] {
index c67ff53a72924ca1603b7dad9235fae40ad7669d..50d3b0dc73131ca7c8ae0a2688723efbd5200a69 100644 (file)
@@ -163,8 +163,8 @@ func CommandContext(t testing.TB, ctx context.Context, name string, args ...stri
                        // grace periods to clean up: one for the delay between the first
                        // termination signal being sent (via the Cancel callback when the Context
                        // expires) and the process being forcibly terminated (via the WaitDelay
-                       // field), and a second one for the delay becween the process being
-                       // terminated and and the test logging its output for debugging.
+                       // field), and a second one for the delay between the process being
+                       // terminated and the test logging its output for debugging.
                        //
                        // (We want to ensure that the test process itself has enough time to
                        // log the output before it is also terminated.)
index dc3e099c833d3731462dcc4e296a45b678346d67..9c0d59206119389e3884b7d5ce211c9ed2a07eb5 100644 (file)
@@ -8007,7 +8007,7 @@ func (cc *http2ClientConn) canTakeNewRequestLocked() bool {
        return st.canTakeNewRequest
 }
 
-// tooIdleLocked reports whether this connection has been been sitting idle
+// tooIdleLocked reports whether this connection has been sitting idle
 // for too much wall time.
 func (cc *http2ClientConn) tooIdleLocked() bool {
        // The Round(0) strips the monontonic clock reading so the
index 4cd447a70c98c2798bcb9642b86030fab6277899..8ef1b022cfdc6519b6bfe8dbdf9179b6deff6f6c 100644 (file)
@@ -660,7 +660,7 @@ type cpuStatsAggregate struct {
 // compute populates the cpuStatsAggregate with values from the runtime.
 func (a *cpuStatsAggregate) compute() {
        a.cpuStats = work.cpuStats
-       // TODO(mknyszek): Update the the CPU stats again so that we're not
+       // TODO(mknyszek): Update the CPU stats again so that we're not
        // just relying on the STW snapshot. The issue here is that currently
        // this will cause non-monotonicity in the "user" CPU time metric.
        //
index 10e93a13d38635cf90652d0a67e7526879225477..82a94be22a7ea51479136617db23f89ac873f40c 100644 (file)
@@ -884,7 +884,7 @@ func fillAligned(x uint64, m uint) uint64 {
 // segment which represents a contiguous region of free and unscavenged memory.
 //
 // searchIdx indicates the page index within this chunk to start the search, but
-// note that findScavengeCandidate searches backwards through the pallocData. As a
+// note that findScavengeCandidate searches backwards through the pallocData. As
 // a result, it will return the highest scavenge candidate in address order.
 //
 // min indicates a hard minimum size and alignment for runs of pages. That is,