diff options
| author | Dan Kortschak <dan@kortschak.io> | 2022-07-17 08:43:55 +0930 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2022-07-19 20:07:59 +0000 |
| commit | 176b63e7113b82c140a4ecb2620024526c2c42e3 (patch) | |
| tree | 8d61114fa88009c0c89657a0f9faeced57de61cc /src/debug | |
| parent | 8e1e64c16a4d53c06ed4f2287fc11eeb5029ca1a (diff) | |
| download | go-176b63e7113b82c140a4ecb2620024526c2c42e3.tar.xz | |
crypto/internal/nistec,debug/gosym: fix typos
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>
Diffstat (limited to 'src/debug')
| -rw-r--r-- | src/debug/gosym/symtab.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/debug/gosym/symtab.go b/src/debug/gosym/symtab.go index 4e63f1cdf7..afc67198c3 100644 --- a/src/debug/gosym/symtab.go +++ b/src/debug/gosym/symtab.go @@ -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. |
