diff options
| author | cui fliter <imcusg@gmail.com> | 2022-11-11 19:22:35 +0800 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2022-11-18 17:59:44 +0000 |
| commit | b2faff18ce28edad98303d2c3134dec1331fd7b5 (patch) | |
| tree | 2161dfe37742a6be201f506abf0d4f20533e8d76 /src/math | |
| parent | 893964b9727a3dfcadab75c0f6b3c6b683b9bae0 (diff) | |
| download | go-b2faff18ce28edad98303d2c3134dec1331fd7b5.tar.xz | |
all: add missing periods in comments
Change-Id: I69065f8adf101fdb28682c55997f503013a50e29
Reviewed-on: https://go-review.googlesource.com/c/go/+/449757
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Joedian Reid <joedian@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Joedian Reid <joedian@golang.org>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Diffstat (limited to 'src/math')
| -rw-r--r-- | src/math/big/int.go | 4 | ||||
| -rw-r--r-- | src/math/big/intconv.go | 2 | ||||
| -rw-r--r-- | src/math/big/natconv.go | 2 | ||||
| -rw-r--r-- | src/math/cmplx/sin.go | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/src/math/big/int.go b/src/math/big/int.go index 29b5ddf3a5..d747078e23 100644 --- a/src/math/big/int.go +++ b/src/math/big/int.go @@ -671,7 +671,7 @@ func lehmerSimulate(A, B *Int) (u0, u1, v0, v1 Word, even bool) { // where the signs of u0, u1, v0, v1 are given by even // For even == true: u0, v1 >= 0 && u1, v0 <= 0 // For even == false: u0, v1 <= 0 && u1, v0 >= 0 -// q, r, s, t are temporary variables to avoid allocations in the multiplication +// q, r, s, t are temporary variables to avoid allocations in the multiplication. func lehmerUpdate(A, B, q, r, s, t *Int, u0, u1, v0, v1 Word, even bool) { t.abs = t.abs.setWord(u0) @@ -695,7 +695,7 @@ func lehmerUpdate(A, B, q, r, s, t *Int, u0, u1, v0, v1 Word, even bool) { } // euclidUpdate performs a single step of the Euclidean GCD algorithm -// if extended is true, it also updates the cosequence Ua, Ub +// if extended is true, it also updates the cosequence Ua, Ub. func euclidUpdate(A, B, Ua, Ub, q, r, s, t *Int, extended bool) { q, r = q.QuoRem(A, B, r) diff --git a/src/math/big/intconv.go b/src/math/big/intconv.go index a3a4023caa..04e8c24ed5 100644 --- a/src/math/big/intconv.go +++ b/src/math/big/intconv.go @@ -40,7 +40,7 @@ func (x *Int) String() string { return x.Text(10) } -// write count copies of text to s +// write count copies of text to s. func writeMultiple(s fmt.State, text string, count int) { if len(text) > 0 { b := []byte(text) diff --git a/src/math/big/natconv.go b/src/math/big/natconv.go index da59bd6e4c..ce94f2cf72 100644 --- a/src/math/big/natconv.go +++ b/src/math/big/natconv.go @@ -455,7 +455,7 @@ func (z nat) expWW(x, y Word) nat { return z.expNN(nat(nil).setWord(x), nat(nil).setWord(y), nil, false) } -// construct table of powers of bb*leafSize to use in subdivisions +// construct table of powers of bb*leafSize to use in subdivisions. func divisors(m int, b Word, ndigits int, bb Word) []divisor { // only compute table when recursive conversion is enabled and x is large if leafSize == 0 || m <= leafSize { diff --git a/src/math/cmplx/sin.go b/src/math/cmplx/sin.go index febac0e0bb..51cf40566d 100644 --- a/src/math/cmplx/sin.go +++ b/src/math/cmplx/sin.go @@ -172,7 +172,7 @@ func Cosh(x complex128) complex128 { return complex(c*ch, s*sh) } -// calculate sinh and cosh +// calculate sinh and cosh. func sinhcosh(x float64) (sh, ch float64) { if math.Abs(x) <= 0.5 { return math.Sinh(x), math.Cosh(x) |
