]> Cypherpunks repositories - gostls13.git/commitdiff
all: make spelling consistent
authorBrad Fitzpatrick <bradfitz@golang.org>
Thu, 8 Dec 2016 22:15:40 +0000 (22:15 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 8 Dec 2016 23:22:37 +0000 (23:22 +0000)
Fixes #17938

Change-Id: Iad12155f4976846bd4a9a53869f89e40e5b3deb3
Reviewed-on: https://go-review.googlesource.com/34147
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
15 files changed:
doc/devel/weekly.html
src/cmd/compile/internal/gc/testdata/array.go
src/cmd/compile/internal/gc/testdata/string.go
src/cmd/link/internal/ld/data.go
src/cmd/link/internal/ld/elf.go
src/cmd/pprof/internal/svg/svgpan.go
src/context/context_test.go
src/crypto/aes/gcm_s390x.go
src/crypto/cipher/gcm.go
src/crypto/x509/verify.go
src/encoding/asn1/marshal.go
src/os/exec/exec_test.go
src/runtime/iface.go
src/runtime/panic.go
test/fixedbugs/issue16130.go

index 7166a76507420b47a0650fea436de547d79f83b0..e17461db2465dcf97a8695f899cac791afe25831 100644 (file)
@@ -519,7 +519,7 @@ Other changes:
        fix FreeBSD signal handling around thread creation (thanks Devon H. O'Dell),
        goroutine profile, stack dumps,
        implement runtime.osyield on FreeBSD 386, amd64 (thanks Devon H. O'Dell),
-       permit default behaviour of SIGTSTP, SIGTTIN, SIGTTOU,
+       permit default behavior of SIGTSTP, SIGTTIN, SIGTTOU,
        release unused memory to the OS (thanks Sébastien Paolacci),
        remove an obsolete file (thanks Mikio Hara).
 * spec: make all comparison results untyped bool,
@@ -4157,7 +4157,7 @@ Other changes in this release:
 * suffixarray: use binary search for both ends of Lookup (thanks Eric Eisner).
 * syscall: add missing network interface constants (thanks Mikio Hara).
 * template: treat map keys as zero, not non-existent (thanks Roger Peppe).
-* time: allow cancelling of After events (thanks Roger Peppe),
+* time: allow canceling of After events (thanks Roger Peppe),
         support Solaris zoneinfo directory.
 * token/position: added SetLinesForContent.
 * unicode: update to unicode 6.0.0.
@@ -5696,7 +5696,7 @@ This release contains many changes:
 * cmath: new complex math library (thanks Charles L. Dorian).
 * docs: update to match current coding style (thanks Christopher Wedgwood).
 * exp/eval: fix example and add target to Makefile (thanks Evan Shaw).
-* fmt: change behaviour of format verb %b to match %x when negative (thanks Andrei Vieru).
+* fmt: change behavior of format verb %b to match %x when negative (thanks Andrei Vieru).
 * gc: compile s == "" as len(s) == 0,
        distinguish fatal compiler bug from error+exit,
        fix alignment on non-amd64,
index 0334339d43f349b00dd2aa4ece3c3dfc11523802..6be8d9155ba1fe0004f53a24eec40e6274bf4d08 100644 (file)
@@ -106,7 +106,7 @@ func testSliceSetElement() {
 func testSlicePanic1() {
        defer func() {
                if r := recover(); r != nil {
-                       println("paniced as expected")
+                       println("panicked as expected")
                }
        }()
 
@@ -119,7 +119,7 @@ func testSlicePanic1() {
 func testSlicePanic2() {
        defer func() {
                if r := recover(); r != nil {
-                       println("paniced as expected")
+                       println("panicked as expected")
                }
        }()
 
index 897e874ee5d1ac579b9d9fcba17b1658419a93f8..03053a6134a925181b462df46c18368f410b7033 100644 (file)
@@ -73,7 +73,7 @@ func testStructSlice() {
 func testStringSlicePanic() {
        defer func() {
                if r := recover(); r != nil {
-                       println("paniced as expected")
+                       println("panicked as expected")
                }
        }()
 
@@ -148,7 +148,7 @@ func testInt64Index() {
 func testInt64IndexPanic() {
        defer func() {
                if r := recover(); r != nil {
-                       println("paniced as expected")
+                       println("panicked as expected")
                }
        }()
 
@@ -161,7 +161,7 @@ func testInt64IndexPanic() {
 func testInt64SlicePanic() {
        defer func() {
                if r := recover(); r != nil {
-                       println("paniced as expected")
+                       println("panicked as expected")
                }
        }()
 
index 1e2a9eadc55f09f102627f2c6936e2cfd63d932c..aca8973a8598823c6295288ab8cdf6774b36f003 100644 (file)
@@ -1250,7 +1250,7 @@ func (p *GCProg) AddSym(s *Symbol) {
 }
 
 // dataSortKey is used to sort a slice of data symbol *Symbol pointers.
-// The sort keys are kept inline to improve cache behaviour while sorting.
+// The sort keys are kept inline to improve cache behavior while sorting.
 type dataSortKey struct {
        size int64
        name string
index 7304b5b0d3e98e9a6d4af53d8b8b9f67b39052c2..ef9f253414e2f9e3a41ae50d199aee12186e3007 100644 (file)
@@ -2777,7 +2777,7 @@ func Elfadddynsym(ctxt *Link, s *Symbol) {
                /* type */
                t := STB_GLOBAL << 4
 
-               // TODO(mwhudson): presumably the behaviour should actually be the same on both arm and 386.
+               // TODO(mwhudson): presumably the behavior should actually be the same on both arm and 386.
                if SysArch.Family == sys.I386 && s.Attr.CgoExport() && s.Type&obj.SMASK == obj.STEXT {
                        t |= STT_FUNC
                } else if SysArch.Family == sys.ARM && s.Attr.CgoExportDynamic() && s.Type&obj.SMASK == obj.STEXT {
index 4975b103e31be3cf592772350571368175aee817..d8f12afea4922b3206413f9575b5c144a3c5c143 100644 (file)
@@ -17,7 +17,7 @@ const svgPanJS = `
  *  - Mouse zooming (using the wheel)
  *  - Object dragging
  *
- * You can configure the behaviour of the pan/zoom/drag with the variables
+ * You can configure the behavior of the pan/zoom/drag with the variables
  * listed in the CONFIGURATION section of this file.
  *
  * Known issues:
index 2d604a04d3abdfd4e657a4a313fcf0a51c0a277e..6efc06cbe59355bce15d5e886a0e54155594d5c4 100644 (file)
@@ -595,14 +595,14 @@ func XTestCancelRemoves(t testingT) {
        _, cancel := WithCancel(ctx)
        checkChildren("with WithCancel child ", ctx, 1)
        cancel()
-       checkChildren("after cancelling WithCancel child", ctx, 0)
+       checkChildren("after canceling WithCancel child", ctx, 0)
 
        ctx, _ = WithCancel(Background())
        checkChildren("after creation", ctx, 0)
        _, cancel = WithTimeout(ctx, 60*time.Minute)
        checkChildren("with WithTimeout child ", ctx, 1)
        cancel()
-       checkChildren("after cancelling WithTimeout child", ctx, 0)
+       checkChildren("after canceling WithTimeout child", ctx, 0)
 }
 
 func XTestWithCancelCanceledParent(t testingT) {
index 9eaaf7c21ebe5e431d3b66f372a0339f6658ebb5..438310d3dee74ccd96207025b492bf1f48dfd557 100644 (file)
@@ -257,7 +257,7 @@ func (g *gcmAsm) Open(dst, nonce, ciphertext, data []byte) ([]byte, error) {
        if subtle.ConstantTimeCompare(expectedTag[:], tag) != 1 {
                // The AESNI code decrypts and authenticates concurrently, and
                // so overwrites dst in the event of a tag mismatch. That
-               // behaviour is mimicked here in order to be consistent across
+               // behavior is mimicked here in order to be consistent across
                // platforms.
                for i := range out {
                        out[i] = 0
index 793a4459e5364b4dbb9380c3ee56cd682f767157..62085aac0fe58b68bd4095fd24b3bc92823369b1 100644 (file)
@@ -188,7 +188,7 @@ func (g *gcm) Open(dst, nonce, ciphertext, data []byte) ([]byte, error) {
        if subtle.ConstantTimeCompare(expectedTag[:], tag) != 1 {
                // The AESNI code decrypts and authenticates concurrently, and
                // so overwrites dst in the event of a tag mismatch. That
-               // behaviour is mimicked here in order to be consistent across
+               // behavior is mimicked here in order to be consistent across
                // platforms.
                for i := range out {
                        out[i] = 0
index 0d3de30beca6311d601503fed0f559e618f11cce..29345a1755c8e1cde125946ae1cd3eb3299256e7 100644 (file)
@@ -153,7 +153,7 @@ type VerifyOptions struct {
        CurrentTime   time.Time // if zero, the current time is used
        // KeyUsage specifies which Extended Key Usage values are acceptable.
        // An empty list means ExtKeyUsageServerAuth. Key usage is considered a
-       // constraint down the chain which mirrors Windows CryptoAPI behaviour,
+       // constraint down the chain which mirrors Windows CryptoAPI behavior,
        // but not the spec. To accept any key usage, include ExtKeyUsageAny.
        KeyUsages []ExtKeyUsage
 }
@@ -262,7 +262,7 @@ func (c *Certificate) isValid(certType int, currentChain []*Certificate, opts *V
 // WARNING: this doesn't do any revocation checking.
 func (c *Certificate) Verify(opts VerifyOptions) (chains [][]*Certificate, err error) {
        // Platform-specific verification needs the ASN.1 contents so
-       // this makes the behaviour consistent across platforms.
+       // this makes the behavior consistent across platforms.
        if len(c.Raw) == 0 {
                return nil, errNotParsed
        }
index 76d0b0c825f76b732eb92ffded8b6100e4c458f5..225fd0849c6f28f59b220e2e41c79c5775f71320 100644 (file)
@@ -535,7 +535,7 @@ func makeField(v reflect.Value, params fieldParameters) (e encoder, err error) {
 
        // If no default value is given then the zero value for the type is
        // assumed to be the default value. This isn't obviously the correct
-       // behaviour, but it's what Go has traditionally done.
+       // behavior, but it's what Go has traditionally done.
        if params.optional && params.defaultValue == nil {
                if reflect.DeepEqual(v.Interface(), reflect.Zero(v.Type()).Interface()) {
                        return bytesEncoder(nil), nil
index d3ac7ab4b9168deca638b485b0cc304e78592c84..4052e7104257e385fa9b6e5aaec64ae8061c0489 100644 (file)
@@ -978,7 +978,7 @@ func TestContextCancel(t *testing.T) {
                        break
                }
                if time.Since(start) > time.Second {
-                       t.Fatal("cancelling context did not stop program")
+                       t.Fatal("canceling context did not stop program")
                }
                time.Sleep(time.Millisecond)
        }
index c932e149ddda9c907a50eaf86a870a97730c06a4..18f5c588b4bf4f1ce738e9034295c37d65519264 100644 (file)
@@ -179,7 +179,7 @@ func panicnildottype(want *_type) {
 
 // The conv and assert functions below do very similar things.
 // The convXXX functions are guaranteed by the compiler to succeed.
-// The assertXXX functions may fail (either panicing or returning false,
+// The assertXXX functions may fail (either panicking or returning false,
 // depending on whether they are 1-result or 2-result).
 // The convXXX functions succeed on a nil input, whereas the assertXXX
 // functions fail on a nil input.
index 73924365c34da7a2b17203c9367634d08479a04d..876bca7fd46c75bc6a967c6443633972eb39262d 100644 (file)
@@ -646,7 +646,7 @@ func startpanic_m() {
                freezetheworld()
                return
        case 1:
-               // Something failed while panicing, probably the print of the
+               // Something failed while panicking, probably the print of the
                // argument to panic().  Just print a stack trace and exit.
                _g_.m.dying = 2
                print("panic during panic\n")
index 19c8264c6f810dc67b2a3a7f4ef8976200df1d7f..c4e3ffd33db9fa15353b60eb65b0197574ed0391 100644 (file)
@@ -5,7 +5,7 @@
 // license that can be found in the LICENSE file.
 
 // Test that an interface conversion error panics with an "interface
-// conversion" run-time error. It was (incorrectly) panicing with a
+// conversion" run-time error. It was (incorrectly) panicking with a
 // "nil pointer dereference."
 
 package main