Commit 81a38fbb authored by David Symonds's avatar David Symonds

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
parent b2e9f425
......@@ -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
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment