R=gri
CC=golang-dev
https://golang.org/cl/2763041
This commit is contained in:
Russ Cox 2010-10-26 21:52:54 -07:00
parent e48c0fb562
commit d86ab015f7
45 changed files with 68 additions and 199 deletions

View file

@ -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]