mirror of https://github.com/golang/go.git
debug/plan9obj: simplify s[:] to s where
Change-Id: Ib2eee1215ba046e4541af8afa3a921c680d2b37e Reviewed-on: https://go-review.googlesource.com/c/142037 Run-TryBot: Iskander Sharipov <iskander.sharipov@intel.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Iskander Sharipov <iskander.sharipov@intel.com>
This commit is contained in:
parent
e489a236b4
commit
4330866385
|
|
@ -274,7 +274,7 @@ func newTable(symtab []byte, ptrsz int) ([]Sym, error) {
|
|||
ts.Value = s.value
|
||||
switch s.typ {
|
||||
default:
|
||||
ts.Name = string(s.name[:])
|
||||
ts.Name = string(s.name)
|
||||
case 'z', 'Z':
|
||||
for i := 0; i < len(s.name); i += 2 {
|
||||
eltIdx := binary.BigEndian.Uint16(s.name[i : i+2])
|
||||
|
|
|
|||
Loading…
Reference in New Issue