Skip to content

Commit

Permalink
crypto/internal/nistec,debug/gosym: fix typos
Browse files Browse the repository at this point in the history
Change-Id: I228a23754656b41843573bd4217de4df46c9df36
Reviewed-on: https://go-review.googlesource.com/c/go/+/417954
Run-TryBot: Ian Lance Taylor <[email protected]>
TryBot-Result: Gopher Robot <[email protected]>
Reviewed-by: Jenny Rakoczy <[email protected]>
Reviewed-by: Ian Lance Taylor <[email protected]>
Auto-Submit: Ian Lance Taylor <[email protected]>
  • Loading branch information
kortschak authored and gopherbot committed Jul 19, 2022
1 parent 8e1e64c commit 176b63e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/crypto/internal/nistec/p224_sqrt.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion src/debug/gosym/symtab.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 176b63e

Please sign in to comment.