]> Cypherpunks repositories - gostls13.git/commitdiff
net/mail: close minor TODO that was waiting on a 6g bug fix.
authorDavid Symonds <dsymonds@golang.org>
Sat, 10 Mar 2012 08:02:52 +0000 (19:02 +1100)
committerDavid Symonds <dsymonds@golang.org>
Sat, 10 Mar 2012 08:02:52 +0000 (19:02 +1100)
R=golang-dev, mikioh.mikioh
CC=golang-dev
https://golang.org/cl/5796050

src/pkg/net/mail/message.go

index bf22c711e49602ab3c1b62340e3a6b657ea9749f..0917bbedf1b3eb4e6dda4c6f0220dc609524d267 100644 (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
 }