mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00: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
1 changed files with 1 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue