all: consistently use US spelling of present participles

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>
This commit is contained in:
Daniel Martí 2022-04-07 15:13:47 +09:00
parent 5a90270d7f
commit 3e7ffb862f
11 changed files with 15 additions and 15 deletions

View file

@ -547,7 +547,7 @@ func RecordFlags(flags ...string) {
fmt.Fprintf(&cmd, " -%s=%v", f.Name, getter.Get()) 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. // off.
// Once regabi is turned on across the board and the relative GOEXPERIMENT // Once regabi is turned on across the board and the relative GOEXPERIMENT
// knobs no longer exist this code should be removed. // knobs no longer exist this code should be removed.

View file

@ -26,7 +26,7 @@ func NewString(s string) Node {
} }
const ( 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. // overflow and also mantissa precision for big.Floats.
ConstPrec = 512 ConstPrec = 512
) )

View file

@ -171,7 +171,7 @@ var validLinkerFlags = []*lazyregexp.Regexp{
// Note that any wildcards in -Wl need to exclude comma, // Note that any wildcards in -Wl need to exclude comma,
// since -Wl splits its argument at commas and passes // since -Wl splits its argument at commas and passes
// them all to the linker uninterpreted. Allowing comma // 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. // linker arguments through one of these.
re(`-Wl,--(no-)?allow-multiple-definition`), re(`-Wl,--(no-)?allow-multiple-definition`),
re(`-Wl,--(no-)?allow-shlib-undefined`), re(`-Wl,--(no-)?allow-shlib-undefined`),

View file

@ -4037,9 +4037,9 @@ var instFormats = [...]instFormat{
[6]*argField{ap_VecReg_6_10, ap_VecReg_16_20}}, [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) {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}}, [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}}, [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}}, [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) {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}}, [6]*argField{ap_VecSReg_31_31_6_10, ap_VecSReg_30_30_16_20}},

View 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 // the context given to the client side conn.HandshakeContext
// interrupts the in-progress handshake. // interrupts the in-progress handshake.
func TestClientHandshakeContextCancellation(t *testing.T) { func TestClientHandshakeContextCancellation(t *testing.T) {

View 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 // the context given to the server side conn.HandshakeContext
// interrupts the in-progress handshake. // interrupts the in-progress handshake.
func TestServerHandshakeContextCancellation(t *testing.T) { func TestServerHandshakeContextCancellation(t *testing.T) {

View file

@ -401,16 +401,16 @@ func TestResponseWriterSniffsContentType(t *testing.T) {
} }
} }
type signallingNopCloser struct { type signalingNopCloser struct {
io.Reader io.Reader
closed chan bool closed chan bool
} }
func (*signallingNopCloser) Write(buf []byte) (int, error) { func (*signalingNopCloser) Write(buf []byte) (int, error) {
return len(buf), nil return len(buf), nil
} }
func (rc *signallingNopCloser) Close() error { func (rc *signalingNopCloser) Close() error {
close(rc.closed) close(rc.closed)
return nil return nil
} }
@ -429,7 +429,7 @@ func TestSlowRequest(t *testing.T) {
} }
}(pw) }(pw)
rc := &signallingNopCloser{pr, make(chan bool)} rc := &signalingNopCloser{pr, make(chan bool)}
handlerDone := make(chan bool) handlerDone := make(chan bool)
c := newChild(rc, http.HandlerFunc(func( c := newChild(rc, http.HandlerFunc(func(

View file

@ -1721,7 +1721,7 @@ type closeWriter interface {
var _ closeWriter = (*net.TCPConn)(nil) var _ closeWriter = (*net.TCPConn)(nil)
// closeWrite flushes any outstanding data and sends a FIN packet (if // 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 // pause for a bit, hoping the client processes it before any
// subsequent RST. // subsequent RST.
// //

View file

@ -78,7 +78,7 @@ var fieldsTests = []struct {
index: []int{0, 1}, index: []int{0, 1},
}}, }},
}, { }, {
testName: "TwoEmbeddedStructsWithCancellingMembers", testName: "TwoEmbeddedStructsWithCancelingMembers",
val: struct { val: struct {
SFG SFG
SF SF

View file

@ -387,7 +387,7 @@ func sweepone() uintptr {
// concurrent sweeps running, but we're at least very // concurrent sweeps running, but we're at least very
// close to done sweeping. // 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. // that there's new work to do) and wake the scavenger.
// //
// The scavenger is signaled by the last sweeper because once // The scavenger is signaled by the last sweeper because once

View file

@ -219,7 +219,7 @@
// The Skip method of *T can be used in a fuzz target if the input is invalid, // 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: // 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) { // f.Fuzz(func(t *testing.T, b []byte) {
// var v interface{} // var v interface{}
// if err := json.Unmarshal(b, &v); err != nil { // if err := json.Unmarshal(b, &v); err != nil {