mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
all: revert "all: prefer strings.LastIndexByte over strings.LastIndex"
This reverts https://golang.org/cl/66372. Updates #22148 Change-Id: I3e94af3dfc11a2883bf28e1d5e1f32f98760b3ee Reviewed-on: https://go-review.googlesource.com/68431 Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
parent
90d71fe99e
commit
d153df8e4b
25 changed files with 39 additions and 39 deletions
|
|
@ -177,7 +177,7 @@ func (p *AddressParser) ParseList(list string) ([]*Address, error) {
|
|||
// the name will be rendered according to RFC 2047.
|
||||
func (a *Address) String() string {
|
||||
// Format address local@domain
|
||||
at := strings.LastIndexByte(a.Address, '@')
|
||||
at := strings.LastIndex(a.Address, "@")
|
||||
var local, domain string
|
||||
if at < 0 {
|
||||
// This is a malformed address ("@" is required in addr-spec);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue