]> Cypherpunks repositories - gostls13.git/commitdiff
all: be consistent about spelling of cancelation
authorBrad Fitzpatrick <bradfitz@golang.org>
Thu, 30 Jun 2016 19:24:06 +0000 (19:24 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 30 Jun 2016 21:09:56 +0000 (21:09 +0000)
We had ~30 one way, and these four new occurrences the other way.

Updates #11626

Change-Id: Ic6403dc4905874916ae292ff739d33482ed8e5bf
Reviewed-on: https://go-review.googlesource.com/24683
Reviewed-by: Rob Pike <r@golang.org>
doc/go1.7.html
src/cmd/compile/internal/gc/ssa.go
src/cmd/vet/doc.go
src/cmd/vet/lostcancel.go

index 34236b4dcb42a0ae9c1546cc5bf11fd4e9adb82c..a460754794d7c871ed819bc2b9bbfc512984b542 100644 (file)
@@ -291,7 +291,7 @@ To avoid confusion with the new <code>-tests</code> check, the old, unadvertised
 <p id="vet_lostcancel">
 The <code>vet</code> command also has a new check,
 <code>-lostcancel</code>, which detects failure to call the
-cancellation function returned by the <code>WithCancel</code>,
+cancelation function returned by the <code>WithCancel</code>,
 <code>WithTimeout</code>, and <code>WithDeadline</code> functions in
 Go 1.7's new <code>context</code> package (see <a
 href='#context'>below</a>).
index c0e6045216220bd48ffbb9025e4bd252d48bc003..7f55da621c98137d2f02310bfd4f8fac74a6f8f4 100644 (file)
@@ -1731,7 +1731,7 @@ func (s *state) expr(n *Node) *ssa.Value {
                        addop := ssa.OpAdd64F
                        subop := ssa.OpSub64F
                        pt := floatForComplex(n.Type) // Could be Float32 or Float64
-                       wt := Types[TFLOAT64]         // Compute in Float64 to minimize cancellation error
+                       wt := Types[TFLOAT64]         // Compute in Float64 to minimize cancelation error
 
                        areal := s.newValue1(ssa.OpComplexReal, pt, a)
                        breal := s.newValue1(ssa.OpComplexReal, pt, b)
@@ -1769,7 +1769,7 @@ func (s *state) expr(n *Node) *ssa.Value {
                        subop := ssa.OpSub64F
                        divop := ssa.OpDiv64F
                        pt := floatForComplex(n.Type) // Could be Float32 or Float64
-                       wt := Types[TFLOAT64]         // Compute in Float64 to minimize cancellation error
+                       wt := Types[TFLOAT64]         // Compute in Float64 to minimize cancelation error
 
                        areal := s.newValue1(ssa.OpComplexReal, pt, a)
                        breal := s.newValue1(ssa.OpComplexReal, pt, b)
index bb8dcf171f136771398d5e0d006d2f9c9bb0d7ef..69d5f9cc78b46890a22616d5a6e6c170c612a4cc 100644 (file)
@@ -91,11 +91,11 @@ Flag: -tests
 Mistakes involving tests including functions with incorrect names or signatures
 and example tests that document identifiers not in the package.
 
-Failure to call the cancellation function returned by context.WithCancel.
+Failure to call the cancelation function returned by context.WithCancel.
 
 Flag: -lostcancel
 
-The cancellation function returned by context.WithCancel, WithTimeout,
+The cancelation function returned by context.WithCancel, WithTimeout,
 and WithDeadline must be called or the new context will remain live
 until its parent context is cancelled.
 (The background context is never cancelled.)
index 3649e138b9b4f07305fc3857fbbbe26351d0dc98..11c3c477836340d2424c5add5c8347037f15b626 100644 (file)
@@ -14,7 +14,7 @@ import (
 
 func init() {
        register("lostcancel",
-               "check for failure to call cancellation function returned by context.WithCancel",
+               "check for failure to call cancelation function returned by context.WithCancel",
                checkLostCancel,
                funcDecl, funcLit)
 }