mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
runtime, cmd/link: fix comment typos
Change-Id: I33a10417939bfcfec117d6ad49c42312731ac30f Reviewed-on: https://go-review.googlesource.com/c/go/+/350733 Trust: Josh Bleecher Snyder <josharian@gmail.com> Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Cherry Mui <cherryyz@google.com>
This commit is contained in:
parent
7d67f8d435
commit
9ab6af9837
2 changed files with 4 additions and 4 deletions
|
|
@ -51,7 +51,7 @@ type pclntab struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
// addGeneratedSym adds a generator symbol to pclntab, returning the new Sym.
|
// addGeneratedSym adds a generator symbol to pclntab, returning the new Sym.
|
||||||
// It is the caller's responsibility to save they symbol in state.
|
// It is the caller's responsibility to save the symbol in state.
|
||||||
func (state *pclntab) addGeneratedSym(ctxt *Link, name string, size int64, f generatorFunc) loader.Sym {
|
func (state *pclntab) addGeneratedSym(ctxt *Link, name string, size int64, f generatorFunc) loader.Sym {
|
||||||
size = Rnd(size, int64(ctxt.Arch.PtrSize))
|
size = Rnd(size, int64(ctxt.Arch.PtrSize))
|
||||||
state.size += size
|
state.size += size
|
||||||
|
|
|
||||||
|
|
@ -374,11 +374,11 @@ type pcHeader struct {
|
||||||
minLC uint8 // min instruction size
|
minLC uint8 // min instruction size
|
||||||
ptrSize uint8 // size of a ptr in bytes
|
ptrSize uint8 // size of a ptr in bytes
|
||||||
nfunc int // number of functions in the module
|
nfunc int // number of functions in the module
|
||||||
nfiles uint // number of entries in the file tab.
|
nfiles uint // number of entries in the file tab
|
||||||
funcnameOffset uintptr // offset to the funcnametab variable from pcHeader
|
funcnameOffset uintptr // offset to the funcnametab variable from pcHeader
|
||||||
cuOffset uintptr // offset to the cutab variable from pcHeader
|
cuOffset uintptr // offset to the cutab variable from pcHeader
|
||||||
filetabOffset uintptr // offset to the filetab variable from pcHeader
|
filetabOffset uintptr // offset to the filetab variable from pcHeader
|
||||||
pctabOffset uintptr // offset to the pctab varible from pcHeader
|
pctabOffset uintptr // offset to the pctab variable from pcHeader
|
||||||
pclnOffset uintptr // offset to the pclntab variable from pcHeader
|
pclnOffset uintptr // offset to the pclntab variable from pcHeader
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue