diff options
| author | cui fliter <imcusg@gmail.com> | 2023-01-29 14:40:22 +0800 |
|---|---|---|
| committer | Than McIntosh <thanm@google.com> | 2023-01-30 18:10:36 +0000 |
| commit | dbfdc446fe70a3639ba00eb3d9141ba10783d7cf (patch) | |
| tree | 31f71fa0ae88385cf56791ef9188ceb2859f05bf /src/cmd/link/internal/loader | |
| parent | 4373c6f5768bebeacbedebfddb19013c5771bba6 (diff) | |
| download | go-dbfdc446fe70a3639ba00eb3d9141ba10783d7cf.tar.xz | |
all: fix problematic comments
Change-Id: If092ae7c72b66f172ae32fa6c7294a7ac250362e
Reviewed-on: https://go-review.googlesource.com/c/go/+/463995
Reviewed-by: Cherry Mui <cherryyz@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
Run-TryBot: Than McIntosh <thanm@google.com>
Diffstat (limited to 'src/cmd/link/internal/loader')
| -rw-r--r-- | src/cmd/link/internal/loader/loader.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cmd/link/internal/loader/loader.go b/src/cmd/link/internal/loader/loader.go index 808b218062..2ac17f4f16 100644 --- a/src/cmd/link/internal/loader/loader.go +++ b/src/cmd/link/internal/loader/loader.go @@ -1281,7 +1281,7 @@ func (l *Loader) SetSymAlign(i Sym, align int32) { l.align[i] = uint8(bits.Len32(uint32(align))) } -// SymValue returns the section of the i-th symbol. i is global index. +// SymSect returns the section of the i-th symbol. i is global index. func (l *Loader) SymSect(i Sym) *sym.Section { if int(i) >= len(l.symSects) { // symSects is extended lazily -- it the sym in question is @@ -1320,7 +1320,7 @@ func (l *Loader) NewSection() *sym.Section { return sect } -// SymDynImplib returns the "dynimplib" attribute for the specified +// SymDynimplib returns the "dynimplib" attribute for the specified // symbol, making up a portion of the info for a symbol specified // on a "cgo_import_dynamic" compiler directive. func (l *Loader) SymDynimplib(i Sym) string { @@ -1503,7 +1503,7 @@ func (l *Loader) SetSymDynid(i Sym, val int32) { } } -// DynIdSyms returns the set of symbols for which dynID is set to an +// DynidSyms returns the set of symbols for which dynID is set to an // interesting (non-default) value. This is expected to be a fairly // small set. func (l *Loader) DynidSyms() []Sym { @@ -1836,7 +1836,7 @@ func (l *Loader) Relocs(i Sym) Relocs { return l.relocs(r, li) } -// Relocs returns a Relocs object given a local sym index and reader. +// relocs returns a Relocs object given a local sym index and reader. func (l *Loader) relocs(r *oReader, li uint32) Relocs { var rs []goobj.Reloc if l.isExtReader(r) { |
