Skip to content

Commit b37ab19

Browse files
OlgaVlPetrovaIskander Sharipov
authored and
Iskander Sharipov
committed
debug/plan9obj: simplify s[:] to s where
Change-Id: Ib2eee1215ba046e4541af8afa3a921c680d2b37e Reviewed-on: https://go-review.googlesource.com/c/142037 Run-TryBot: Iskander Sharipov <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Iskander Sharipov <[email protected]>
1 parent 14138f7 commit b37ab19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plan9obj/file.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ func newTable(symtab []byte, ptrsz int) ([]Sym, error) {
274274
ts.Value = s.value
275275
switch s.typ {
276276
default:
277-
ts.Name = string(s.name[:])
277+
ts.Name = string(s.name)
278278
case 'z', 'Z':
279279
for i := 0; i < len(s.name); i += 2 {
280280
eltIdx := binary.BigEndian.Uint16(s.name[i : i+2])

0 commit comments

Comments
 (0)