1
0
mirror of https://github.com/golang/go synced 2024-09-30 22:18:32 -06:00

math/cmplx: fix typo in code comment

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: fc3d5ada2b
GitHub-Pull-Request: golang/go#38661
Reviewed-on: https://go-review.googlesource.com/c/go/+/230199
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
Tyson Andre 2020-04-25 20:53:42 +00:00 committed by Brad Fitzpatrick
parent 7ef28cbd12
commit 19648622d2

View 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