aboutsummaryrefslogtreecommitdiff
path: root/src/math
diff options
context:
space:
mode:
authorTyson Andre <tysonandre775@gmail.com>2020-04-25 20:53:42 +0000
committerBrad Fitzpatrick <bradfitz@golang.org>2020-04-25 21:06:35 +0000
commit19648622d244f301f03d287b075e19d71d79864e (patch)
tree79164f3ec250ceb7c806747e19398915615259fe /src/math
parent7ef28cbd12d1777748affe9dccf20679665c06f9 (diff)
downloadgo-19648622d244f301f03d287b075e19d71d79864e.tar.gz
go-19648622d244f301f03d287b075e19d71d79864e.zip
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: fc3d5ada2bd0087ea9cfb3f105689876e7a2ee4f GitHub-Pull-Request: golang/go#38661 Reviewed-on: https://go-review.googlesource.com/c/go/+/230199 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/math')
-rw-r--r--src/math/cmplx/sqrt.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/math/cmplx/sqrt.go b/src/math/cmplx/sqrt.go
index 0fbdcdedd3..741e5a8865 100644
--- a/src/math/cmplx/sqrt.go
+++ b/src/math/cmplx/sqrt.go
@@ -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