mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
parent
e48c0fb562
commit
d86ab015f7
45 changed files with 68 additions and 199 deletions
|
|
@ -595,9 +595,7 @@ func (p *Parser) RawToken() (Token, os.Error) {
|
|||
n := len(attr)
|
||||
if n >= cap(attr) {
|
||||
nattr := make([]Attr, n, 2*cap(attr))
|
||||
for i, a := range attr {
|
||||
nattr[i] = a
|
||||
}
|
||||
copy(nattr, attr)
|
||||
attr = nattr
|
||||
}
|
||||
attr = attr[0 : n+1]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue