From 19648622d244f301f03d287b075e19d71d79864e Mon Sep 17 00:00:00 2001 From: Tyson Andre Date: Sat, 25 Apr 2020 20:53:42 +0000 Subject: [PATCH] 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 --- src/math/cmplx/sqrt.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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