]> Cypherpunks.ru repositories - gostls13.git/commitdiff
crypto/internal/nistec,debug/gosym: fix typos
authorDan Kortschak <dan@kortschak.io>
Sat, 16 Jul 2022 23:13:55 +0000 (08:43 +0930)
committerGopher Robot <gobot@golang.org>
Tue, 19 Jul 2022 20:07:59 +0000 (20:07 +0000)
Change-Id: I228a23754656b41843573bd4217de4df46c9df36
Reviewed-on: https://go-review.googlesource.com/c/go/+/417954
Run-TryBot: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Jenny Rakoczy <jenny@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>

src/crypto/internal/nistec/p224_sqrt.go
src/debug/gosym/symtab.go

index ac4d761bf555f4de82460fe1b0e113a132d3ce88..9a35cea6aac4e8020ab3050ffedac65bd9f80ef2 100644 (file)
@@ -19,7 +19,7 @@ var p224MinusOne = new(fiat.P224Element).Sub(
 func p224SqrtCandidate(r, x *fiat.P224Element) {
        // Since p = 1 mod 4, we can't use the exponentiation by (p + 1) / 4 like
        // for the other primes. Instead, implement a variation of Tonelli–Shanks.
-       // The contant-time implementation is adapted from Thomas Pornin's ecGFp5.
+       // The constant-time implementation is adapted from Thomas Pornin's ecGFp5.
        //
        // https://github.com/pornin/ecgfp5/blob/82325b965/rust/src/field.rs#L337-L385
 
index 4e63f1cdf705ef1f4d90e2cd52414c326842c43a..afc67198c3ffe041cfb33f87a9f18ba049602e75 100644 (file)
@@ -86,7 +86,7 @@ func (s *Sym) ReceiverName() string {
        // Find the first dot after pathend (or from the beginning, if there was
        // no slash in name).
        l := strings.Index(name[pathend:], ".")
-       // Find the last dot after pathend (or the beginnng).
+       // Find the last dot after pathend (or the beginning).
        r := strings.LastIndex(name[pathend:], ".")
        if l == -1 || r == -1 || l == r {
                // There is no receiver if we didn't find two distinct dots after pathend.