1
0
mirror of https://github.com/golang/go synced 2024-11-23 18:50:05 -07:00

net/mail: fix build.

Change-Id: I8f5c72c6c0db015c06d564523bab35d97d934578
Reviewed-on: https://go-review.googlesource.com/13510
Reviewed-by: Michael McGreevy <mcgreevy@golang.org>
Reviewed-by: David Symonds <dsymonds@golang.org>
This commit is contained in:
David Symonds 2015-08-11 16:36:40 +10:00
parent 1d75b40de8
commit 1052b43213
2 changed files with 2 additions and 2 deletions

View File

@ -177,7 +177,7 @@ func (a *Address) String() string {
// treat the whole address as local-part.
local = a.Address
} else {
local, domain := a.Address[:at], a.Address[at+1:]
local, domain = a.Address[:at], a.Address[at+1:]
}
// Add quotes if needed

View File

@ -485,7 +485,7 @@ func TestAddressFormatting(t *testing.T) {
},
{ // https://golang.org/issue/12098
&Address{Name: "Rob", Address: ""},
`"Rob" <>`,
`"Rob" <@>`,
},
{ // https://golang.org/issue/12098
&Address{Name: "Rob", Address: "@"},