Skip to content

Commit 361d68d

Browse files
committed
remove slicing operator
1 parent 9dcc1bf commit 361d68d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/encoding/asn1/asn1.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ func (oi ObjectIdentifier) String() string {
245245
if i > 0 {
246246
s.WriteByte('.')
247247
}
248-
s.Write(strconv.AppendInt(buf[:0], int64(v), 10))
248+
s.Write(strconv.AppendInt(buf, int64(v), 10))
249249
}
250250

251251
return s.String()

0 commit comments

Comments
 (0)