File tree 4 files changed +6
-6
lines changed 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -291,7 +291,7 @@ <h3 id="cmd_vet">Go vet</h3>
291
291
< p id ="vet_lostcancel ">
292
292
The < code > vet</ code > command also has a new check,
293
293
< code > -lostcancel</ code > , which detects failure to call the
294
- cancellation function returned by the < code > WithCancel</ code > ,
294
+ cancelation function returned by the < code > WithCancel</ code > ,
295
295
< code > WithTimeout</ code > , and < code > WithDeadline</ code > functions in
296
296
Go 1.7's new < code > context</ code > package (see < a
297
297
href ='#context '> below</ a > ).
Original file line number Diff line number Diff line change @@ -1731,7 +1731,7 @@ func (s *state) expr(n *Node) *ssa.Value {
1731
1731
addop := ssa .OpAdd64F
1732
1732
subop := ssa .OpSub64F
1733
1733
pt := floatForComplex (n .Type ) // Could be Float32 or Float64
1734
- wt := Types [TFLOAT64 ] // Compute in Float64 to minimize cancellation error
1734
+ wt := Types [TFLOAT64 ] // Compute in Float64 to minimize cancelation error
1735
1735
1736
1736
areal := s .newValue1 (ssa .OpComplexReal , pt , a )
1737
1737
breal := s .newValue1 (ssa .OpComplexReal , pt , b )
@@ -1769,7 +1769,7 @@ func (s *state) expr(n *Node) *ssa.Value {
1769
1769
subop := ssa .OpSub64F
1770
1770
divop := ssa .OpDiv64F
1771
1771
pt := floatForComplex (n .Type ) // Could be Float32 or Float64
1772
- wt := Types [TFLOAT64 ] // Compute in Float64 to minimize cancellation error
1772
+ wt := Types [TFLOAT64 ] // Compute in Float64 to minimize cancelation error
1773
1773
1774
1774
areal := s .newValue1 (ssa .OpComplexReal , pt , a )
1775
1775
breal := s .newValue1 (ssa .OpComplexReal , pt , b )
Original file line number Diff line number Diff line change @@ -91,11 +91,11 @@ Flag: -tests
91
91
Mistakes involving tests including functions with incorrect names or signatures
92
92
and example tests that document identifiers not in the package.
93
93
94
- Failure to call the cancellation function returned by context.WithCancel.
94
+ Failure to call the cancelation function returned by context.WithCancel.
95
95
96
96
Flag: -lostcancel
97
97
98
- The cancellation function returned by context.WithCancel, WithTimeout,
98
+ The cancelation function returned by context.WithCancel, WithTimeout,
99
99
and WithDeadline must be called or the new context will remain live
100
100
until its parent context is cancelled.
101
101
(The background context is never cancelled.)
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import (
14
14
15
15
func init () {
16
16
register ("lostcancel" ,
17
- "check for failure to call cancellation function returned by context.WithCancel" ,
17
+ "check for failure to call cancelation function returned by context.WithCancel" ,
18
18
checkLostCancel ,
19
19
funcDecl , funcLit )
20
20
}
You can’t perform that action at this time.
0 commit comments