1
0
mirror of https://github.com/golang/go synced 2024-11-12 07:00:21 -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:
David Symonds 2012-03-10 19:02:52 +11:00
parent b2e9f425b9
commit 81a38fbb77

View File

@ -394,8 +394,7 @@ func (p *addrParser) consumeAtom(dot bool) (atom string, err error) {
i := 1
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([]byte((*p)[:i])), (*p)[i:]
atom, *p = string((*p)[:i]), (*p)[i:]
return atom, nil
}