mirror of
https://github.com/golang/go
synced 2024-11-25 22:37:59 -07:00
net/mail: close minor TODO that was waiting on a 6g bug fix.
R=golang-dev, mikioh.mikioh CC=golang-dev https://golang.org/cl/5796050
This commit is contained in:
parent
b2e9f425b9
commit
81a38fbb77
@ -394,8 +394,7 @@ func (p *addrParser) consumeAtom(dot bool) (atom string, err error) {
|
|||||||
i := 1
|
i := 1
|
||||||
for ; i < p.len() && isAtext((*p)[i], dot); i++ {
|
for ; i < p.len() && isAtext((*p)[i], dot); i++ {
|
||||||
}
|
}
|
||||||
// TODO(dsymonds): Remove the []byte() conversion here when 6g doesn't need it.
|
atom, *p = string((*p)[:i]), (*p)[i:]
|
||||||
atom, *p = string([]byte((*p)[:i])), (*p)[i:]
|
|
||||||
return atom, nil
|
return atom, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user