diff options
| author | cuishuang <imcusg@gmail.com> | 2025-12-08 12:18:59 +0800 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2025-12-09 10:42:20 -0800 |
| commit | 36bca3166e18db52687a4d91ead3f98ffe6d00b8 (patch) | |
| tree | 1c6b71ec0fb25998e9f9aa042fd6b7d13cbd6d17 /src/cmd/link | |
| parent | b9693a2d9a89168b86cf01033b8420bf8db652d6 (diff) | |
| download | go-36bca3166e18db52687a4d91ead3f98ffe6d00b8.tar.xz | |
cmd: fix some issues in the comments
Change-Id: Id2c4152b43c7ee1a687e49da7dda5a690e554231
Reviewed-on: https://go-review.googlesource.com/c/go/+/727900
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Keith Randall <khr@golang.org>
Diffstat (limited to 'src/cmd/link')
| -rw-r--r-- | src/cmd/link/internal/ld/fips140.go | 2 | ||||
| -rw-r--r-- | src/cmd/link/internal/loader/loader_test.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/link/internal/ld/fips140.go b/src/cmd/link/internal/ld/fips140.go index c1887ee50a..8ab6f39910 100644 --- a/src/cmd/link/internal/ld/fips140.go +++ b/src/cmd/link/internal/ld/fips140.go @@ -398,7 +398,7 @@ func machofips(ctxt *Link, exe, fipso string) error { return f.Close() } -// machofips updates go:fipsinfo after external linking +// elffips updates go:fipsinfo after external linking // on systems using ELF (most Unix systems). func elffips(ctxt *Link, exe, fipso string) error { // Open executable both for reading ELF and for the fipsObj. diff --git a/src/cmd/link/internal/loader/loader_test.go b/src/cmd/link/internal/loader/loader_test.go index 541f42b7d1..7f7a75d9f4 100644 --- a/src/cmd/link/internal/loader/loader_test.go +++ b/src/cmd/link/internal/loader/loader_test.go @@ -14,7 +14,7 @@ import ( "testing" ) -// dummyAddSym adds the named symbol to the loader as if it had been +// addDummyObjSym adds the named symbol to the loader as if it had been // read from a Go object file. Note that it allocates a global // index without creating an associated object reader, so one can't // do anything interesting with this symbol (such as look at its |
