]> Cypherpunks.ru repositories - gostls13.git/commitdiff
all: consistently use US spelling of present participles
authorDaniel Martí <mvdan@mvdan.cc>
Thu, 7 Apr 2022 06:13:47 +0000 (15:13 +0900)
committerDaniel Martí <mvdan@mvdan.cc>
Fri, 8 Apr 2022 13:44:41 +0000 (13:44 +0000)
It has been agreed that we should prefer the US spelling of words like
"canceling" over "cancelling"; for example, see https://go.dev/cl/14526.

Fix a few occurrences of the "canceling" inconsistency, as well as:

* signaling
* tunneling
* marshaling

Change-Id: I99f3ba0a700a9f0292bc6c1b110af31dd05f1ff0
Reviewed-on: https://go-review.googlesource.com/c/go/+/398734
Trust: Daniel Martí <mvdan@mvdan.cc>
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/compile/internal/dwarfgen/dwarf.go
src/cmd/compile/internal/ir/const.go
src/cmd/go/internal/work/security.go
src/cmd/vendor/golang.org/x/arch/ppc64/ppc64asm/tables.go
src/crypto/tls/handshake_client_test.go
src/crypto/tls/handshake_server_test.go
src/net/http/fcgi/fcgi_test.go
src/net/http/server.go
src/reflect/visiblefields_test.go
src/runtime/mgcsweep.go
src/testing/testing.go

index e249a52e57a9839b7c32c444be97c864f6929acc..ba73976504e1654d05e028e5d50783dc235281d5 100644 (file)
@@ -547,7 +547,7 @@ func RecordFlags(flags ...string) {
                fmt.Fprintf(&cmd, " -%s=%v", f.Name, getter.Get())
        }
 
-       // Adds flag to producer string singalling whether regabi is turned on or
+       // Adds flag to producer string signaling whether regabi is turned on or
        // off.
        // Once regabi is turned on across the board and the relative GOEXPERIMENT
        // knobs no longer exist this code should be removed.
index eaa4d5b6b15ca79534832f76cd4d81d0013ef13b..f0b66957f1201bf4c546a640b1e84d00afb84344 100644 (file)
@@ -26,7 +26,7 @@ func NewString(s string) Node {
 }
 
 const (
-       // Maximum size in bits for big.Ints before signalling
+       // Maximum size in bits for big.Ints before signaling
        // overflow and also mantissa precision for big.Floats.
        ConstPrec = 512
 )
index d1e2c673fadd8ef629514e56773bffc38122fbcc..0bf8763543b14e458f3ccadf68afb06b58671671 100644 (file)
@@ -171,7 +171,7 @@ var validLinkerFlags = []*lazyregexp.Regexp{
        // Note that any wildcards in -Wl need to exclude comma,
        // since -Wl splits its argument at commas and passes
        // them all to the linker uninterpreted. Allowing comma
-       // in a wildcard would allow tunnelling arbitrary additional
+       // in a wildcard would allow tunneling arbitrary additional
        // linker arguments through one of these.
        re(`-Wl,--(no-)?allow-multiple-definition`),
        re(`-Wl,--(no-)?allow-shlib-undefined`),
index d42ab0f29441fdbec1bd85c6bb018ff734123a74..e30e41fe3398b852d7f95064e816144e9baba6c3 100644 (file)
@@ -4037,9 +4037,9 @@ var instFormats = [...]instFormat{
                [6]*argField{ap_VecReg_6_10, ap_VecReg_16_20}},
        {XSADDSP, 0xfc0007f800000000, 0xf000000000000000, 0x0, // VSX Scalar Add Single-Precision XX3-form (xsaddsp XT,XA,XB)
                [6]*argField{ap_VecSReg_31_31_6_10, ap_VecSReg_29_29_11_15, ap_VecSReg_30_30_16_20}},
-       {XSCVDPSPN, 0xfc0007fc00000000, 0xf000042c00000000, 0x1f000000000000, // VSX Scalar Convert Scalar Single-Precision to Vector Single-Precision format Non-signalling XX2-form (xscvdpspn XT,XB)
+       {XSCVDPSPN, 0xfc0007fc00000000, 0xf000042c00000000, 0x1f000000000000, // VSX Scalar Convert Scalar Single-Precision to Vector Single-Precision format Non-signaling XX2-form (xscvdpspn XT,XB)
                [6]*argField{ap_VecSReg_31_31_6_10, ap_VecSReg_30_30_16_20}},
-       {XSCVSPDPN, 0xfc0007fc00000000, 0xf000052c00000000, 0x1f000000000000, // VSX Scalar Convert Single-Precision to Double-Precision format Non-signalling XX2-form (xscvspdpn XT,XB)
+       {XSCVSPDPN, 0xfc0007fc00000000, 0xf000052c00000000, 0x1f000000000000, // VSX Scalar Convert Single-Precision to Double-Precision format Non-signaling XX2-form (xscvspdpn XT,XB)
                [6]*argField{ap_VecSReg_31_31_6_10, ap_VecSReg_30_30_16_20}},
        {XSCVSXDSP, 0xfc0007fc00000000, 0xf00004e000000000, 0x1f000000000000, // VSX Scalar Convert with round Signed Doubleword to Single-Precision format XX2-form (xscvsxdsp XT,XB)
                [6]*argField{ap_VecSReg_31_31_6_10, ap_VecSReg_30_30_16_20}},
index 0950bb0ac4533f6961732fb18bb5078da3fab238..380de9f6fb50ebe9a6964fe5cf7a2f44fe04a351 100644 (file)
@@ -2564,7 +2564,7 @@ func testResumptionKeepsOCSPAndSCT(t *testing.T, ver uint16) {
        }
 }
 
-// TestClientHandshakeContextCancellation tests that cancelling
+// TestClientHandshakeContextCancellation tests that canceling
 // the context given to the client side conn.HandshakeContext
 // interrupts the in-progress handshake.
 func TestClientHandshakeContextCancellation(t *testing.T) {
index 6d2c4056261feea212d893c93ea874f82741d372..16a22542ebf502b85ec866519018a5e9b761f81d 100644 (file)
@@ -1944,7 +1944,7 @@ func TestAESCipherReorderingTLS13(t *testing.T) {
        }
 }
 
-// TestServerHandshakeContextCancellation tests that cancelling
+// TestServerHandshakeContextCancellation tests that canceling
 // the context given to the server side conn.HandshakeContext
 // interrupts the in-progress handshake.
 func TestServerHandshakeContextCancellation(t *testing.T) {
index 5888783620874c7598a2faa208bc780dabad3192..7a344ff31dc4647bb93a17c8fd079dc5faf2f510 100644 (file)
@@ -401,16 +401,16 @@ func TestResponseWriterSniffsContentType(t *testing.T) {
        }
 }
 
-type signallingNopCloser struct {
+type signalingNopCloser struct {
        io.Reader
        closed chan bool
 }
 
-func (*signallingNopCloser) Write(buf []byte) (int, error) {
+func (*signalingNopCloser) Write(buf []byte) (int, error) {
        return len(buf), nil
 }
 
-func (rc *signallingNopCloser) Close() error {
+func (rc *signalingNopCloser) Close() error {
        close(rc.closed)
        return nil
 }
@@ -429,7 +429,7 @@ func TestSlowRequest(t *testing.T) {
                }
        }(pw)
 
-       rc := &signallingNopCloser{pr, make(chan bool)}
+       rc := &signalingNopCloser{pr, make(chan bool)}
        handlerDone := make(chan bool)
 
        c := newChild(rc, http.HandlerFunc(func(
index bd4ef1baccd00907d76dfe92031002eb18c4909c..77e0108426e0ace54d751d56574499e5f3286b0a 100644 (file)
@@ -1721,7 +1721,7 @@ type closeWriter interface {
 var _ closeWriter = (*net.TCPConn)(nil)
 
 // closeWrite flushes any outstanding data and sends a FIN packet (if
-// client is connected via TCP), signalling that we're done. We then
+// client is connected via TCP), signaling that we're done. We then
 // pause for a bit, hoping the client processes it before any
 // subsequent RST.
 //
index fdedc21f738b57ab830ec91ea84418eaa4a371a9..66d545dd1f7c2cc185ab358f8114ec0c92412961 100644 (file)
@@ -78,7 +78,7 @@ var fieldsTests = []struct {
                index: []int{0, 1},
        }},
 }, {
-       testName: "TwoEmbeddedStructsWithCancellingMembers",
+       testName: "TwoEmbeddedStructsWithCancelingMembers",
        val: struct {
                SFG
                SF
index c863ea9cd8eaf87ae15fa6d7d6516a5cbf1d3295..d0b81fd3dfb9544c1a943833a15ed0bfb7c4400f 100644 (file)
@@ -387,7 +387,7 @@ func sweepone() uintptr {
                // concurrent sweeps running, but we're at least very
                // close to done sweeping.
 
-               // Move the scavenge gen forward (signalling
+               // Move the scavenge gen forward (signaling
                // that there's new work to do) and wake the scavenger.
                //
                // The scavenger is signaled by the last sweeper because once
index 05d8f22affdb5a5b8df74963fb6e7e0ef6a46412..badc159159ec670693df64a32a8f01c45f83f82e 100644 (file)
 // The Skip method of *T can be used in a fuzz target if the input is invalid,
 // but should not be considered a failing input. For example:
 //
-//     func FuzzJSONMarshalling(f *testing.F) {
+//     func FuzzJSONMarshaling(f *testing.F) {
 //         f.Fuzz(func(t *testing.T, b []byte) {
 //             var v interface{}
 //             if err := json.Unmarshal(b, &v); err != nil {