Commit 1052b432 authored by David Symonds's avatar David Symonds

net/mail: fix build.

Change-Id: I8f5c72c6c0db015c06d564523bab35d97d934578
Reviewed-on: https://go-review.googlesource.com/13510Reviewed-by: default avatarMichael McGreevy <mcgreevy@golang.org>
Reviewed-by: default avatarDavid Symonds <dsymonds@golang.org>
parent 1d75b40d
......@@ -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
......
......@@ -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: "@"},
......
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