From fc3d5ada2bd0087ea9cfb3f105689876e7a2ee4f Mon Sep 17 00:00:00 2001 From: Tyson Andre Date: Sat, 25 Apr 2020 16:28:54 -0400 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/ --- 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