diff options
| author | Daniel Martí <mvdan@mvdan.cc> | 2017-08-19 22:33:51 +0200 |
|---|---|---|
| committer | Daniel Martí <mvdan@mvdan.cc> | 2017-08-26 15:09:09 +0000 |
| commit | 99da8730b0b95da2c366135c8dc95dcfaf9c3715 (patch) | |
| tree | 49b26739802e280ecddd0a18f586222adbba5410 /src/cmd/internal | |
| parent | bad6b6fa9190e9079a6d6958859856a66f0fab87 (diff) | |
| download | go-99da8730b0b95da2c366135c8dc95dcfaf9c3715.tar.xz | |
all: remove some double spaces from comments
Went mainly for the ones that make no sense, such as the ones
mid-sentence or after commas.
Change-Id: Ie245d2c19cc7428a06295635cf6a9482ade25ff0
Reviewed-on: https://go-review.googlesource.com/57293
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/cmd/internal')
| -rw-r--r-- | src/cmd/internal/obj/x86/obj6.go | 2 | ||||
| -rw-r--r-- | src/cmd/internal/objfile/goobj.go | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd/internal/obj/x86/obj6.go b/src/cmd/internal/obj/x86/obj6.go index 27873e0824..52fbaa0156 100644 --- a/src/cmd/internal/obj/x86/obj6.go +++ b/src/cmd/internal/obj/x86/obj6.go @@ -528,7 +528,7 @@ func rewriteToPcrel(ctxt *obj.Link, p *obj.Prog, newprog obj.ProgAlloc) { var dst int16 = REG_CX if (p.As == ALEAL || p.As == AMOVL) && p.To.Reg != p.From.Reg && p.To.Reg != p.From.Index { dst = p.To.Reg - // Why? See the comment near the top of rewriteToUseGot above. + // Why? See the comment near the top of rewriteToUseGot above. // AMOVLs might be introduced by the GOT rewrites. } q := obj.Appendp(p, newprog) diff --git a/src/cmd/internal/objfile/goobj.go b/src/cmd/internal/objfile/goobj.go index e075604abd..c9e12a81a4 100644 --- a/src/cmd/internal/objfile/goobj.go +++ b/src/cmd/internal/objfile/goobj.go @@ -81,7 +81,7 @@ func (f *goobjFile) symbols() ([]Sym, error) { } func (f *goobjFile) pcln() (textStart uint64, symtab, pclntab []byte, err error) { - // Should never be called. We implement Liner below, callers + // Should never be called. We implement Liner below, callers // should use that instead. return 0, nil, nil, fmt.Errorf("pcln not available in go object file") } @@ -90,7 +90,7 @@ func (f *goobjFile) pcln() (textStart uint64, symtab, pclntab []byte, err error) // Returns "",0,nil if unknown. // This function implements the Liner interface in preference to pcln() above. func (f *goobjFile) PCToLine(pc uint64) (string, int, *gosym.Func) { - // TODO: this is really inefficient. Binary search? Memoize last result? + // TODO: this is really inefficient. Binary search? Memoize last result? var arch *sys.Arch for _, a := range sys.Archs { if a.Name == f.goobj.Arch { |
