diff options
author | David Symonds <dsymonds@golang.org> | 2015-08-11 16:36:40 +1000 |
---|---|---|
committer | David Symonds <dsymonds@golang.org> | 2015-08-11 06:42:12 +0000 |
commit | 1052b43213ca78035d50cdc3913a6d42c8b502d5 (patch) | |
tree | 6d7f015ace131c54d045d151545e8d58e3d91676 | |
parent | 1d75b40de8ecfaa947e1d61311d3a725fe4ec575 (diff) | |
download | go-1052b43213ca78035d50cdc3913a6d42c8b502d5.tar.gz go-1052b43213ca78035d50cdc3913a6d42c8b502d5.zip |
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>
-rw-r--r-- | src/net/mail/message.go | 2 | ||||
-rw-r--r-- | src/net/mail/message_test.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/net/mail/message.go b/src/net/mail/message.go index 8a89f9b0c0..266ac50a38 100644 --- a/src/net/mail/message.go +++ b/src/net/mail/message.go @@ -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 diff --git a/src/net/mail/message_test.go b/src/net/mail/message_test.go index c6b412c181..1b422743f9 100644 --- a/src/net/mail/message_test.go +++ b/src/net/mail/message_test.go @@ -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: "@"}, |