diff options
author | Mikio Hara <mikioh.mikioh@gmail.com> | 2017-01-08 17:16:46 +0900 |
---|---|---|
committer | Mikio Hara <mikioh.mikioh@gmail.com> | 2017-06-22 08:31:13 +0000 |
commit | 424b0654f8e6c72f69e096f69009096de16e30fa (patch) | |
tree | f847036c623d070f2a48c56f6d8be32fd8f5a93d /src/net/example_test.go | |
parent | 7e63ce61e640a9e2b14ff545c28bf5d7a6f730f3 (diff) | |
download | go-git-424b0654f8e6c72f69e096f69009096de16e30fa.tar.gz |
net: update documentation on Listen and ListenPacket
This change clarifies the documentation on Listen and ListenPacket to
avoid unnecessary confusion about how the arguments for the connection
setup functions are used to make connections.
Also replaces "name" or "hostname" with "host name" when the term
implies the use of DNS.
Updates #17613.
Updates #17614.
Updates #17615.
Fixes #17616.
Updates #17738.
Updates #17956.
Change-Id: I0bad2e143207666f2358d397fc076548ee6c3ae9
Reviewed-on: https://go-review.googlesource.com/34876
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/net/example_test.go')
-rw-r--r-- | src/net/example_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net/example_test.go b/src/net/example_test.go index f8f10e3509..289d84f7c7 100644 --- a/src/net/example_test.go +++ b/src/net/example_test.go @@ -12,7 +12,8 @@ import ( ) func ExampleListener() { - // Listen on TCP port 2000 on all interfaces. + // Listen on TCP port 2000 on all available unicast and + // anycast IP addresses of the local system. l, err := net.Listen("tcp", ":2000") if err != nil { log.Fatal(err) |