]> Cypherpunks repositories - gostls13.git/commitdiff
runtime, cmd/link: fix comment typos
authorJosh Bleecher Snyder <josharian@gmail.com>
Fri, 17 Sep 2021 20:45:12 +0000 (13:45 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Tue, 21 Sep 2021 15:38:11 +0000 (15:38 +0000)
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>
src/cmd/link/internal/ld/pcln.go
src/runtime/symtab.go

index 70e3e1284b9a1ac621741d2c6f843511257fc126..5294da5724afa8d31d4ac676fc8034f958c5a395 100644 (file)
@@ -51,7 +51,7 @@ type pclntab struct {
 }
 
 // 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 {
        size = Rnd(size, int64(ctxt.Arch.PtrSize))
        state.size += size
@@ -521,7 +521,7 @@ type pclnSetUint func(*loader.SymbolBuilder, *sys.Arch, int64, uint64) int64
 //
 // Because of timing in the linker, generating this table takes two passes.
 // The first pass is executed early in the link, and it creates any needed
-// relocations to layout the data. The pieces that need relocations are:
+// relocations to lay out the data. The pieces that need relocations are:
 //   1) the PC->func table.
 //   2) The entry points in the func objects.
 //   3) The funcdata.
index d08aa0b320470506aa2ef42ba2f3ceecd58783d4..aa9dd7b40c94c1abdf5bacfe5be7c9ca59154e66 100644 (file)
@@ -374,11 +374,11 @@ type pcHeader struct {
        minLC          uint8   // min instruction size
        ptrSize        uint8   // size of a ptr in bytes
        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
        cuOffset       uintptr // offset to the cutab 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
 }