]> Cypherpunks repositories - gostls13.git/commitdiff
math/cmplx: fix typo in code comment
authorTyson Andre <tysonandre775@gmail.com>
Sat, 25 Apr 2020 20:53:42 +0000 (20:53 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Sat, 25 Apr 2020 21:06:35 +0000 (21:06 +0000)
Everywhere else is using "cancellation" as of 2019

The reasoning is mentioned in 170060.

> Though there is variation in the spelling of canceled,
> cancellation is always spelled with a double l.
>
> Reference: https://www.grammarly.com/blog/canceled-vs-cancelled/

Change-Id: I933ea68d7251986ce582b92c33b7cb13cee1d207
GitHub-Last-Rev: fc3d5ada2bd0087ea9cfb3f105689876e7a2ee4f
GitHub-Pull-Request: golang/go#38661
Reviewed-on: https://go-review.googlesource.com/c/go/+/230199
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/math/cmplx/sqrt.go

index 0fbdcdedd36cdd38584fe9883a9bd26a50323b4e..741e5a886587e185e7dc08be8bbe062af8a9cfe3 100644 (file)
@@ -40,7 +40,7 @@ import "math"
 //                       1/2
 // Im w  =  [ (r - x)/2 ]   .
 //
-// Cancelation error in r-x or r+x is avoided by using the
+// Cancellation error in r-x or r+x is avoided by using the
 // identity  2 Re w Im w  =  y.
 //
 // Note that -w is also a square root of z. The root chosen