]> Cypherpunks repositories - gostls13.git/commitdiff
net: fix comment
authorMikio Hara <mikioh.mikioh@gmail.com>
Thu, 20 Sep 2012 22:13:36 +0000 (07:13 +0900)
committerMikio Hara <mikioh.mikioh@gmail.com>
Thu, 20 Sep 2012 22:13:36 +0000 (07:13 +0900)
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/6546044

src/pkg/net/dial.go
src/pkg/net/fd_unix.go
src/pkg/net/fd_windows.go
src/pkg/net/sock_posix.go

index 51912397a4633c58e7f8dc8b7b020ee4ca61e432..752f81b618cc241363dea057d07c186872884218 100644 (file)
@@ -81,7 +81,7 @@ func resolveNetAddr(op, net, addr string) (afnet string, a Addr, err error) {
 //     Dial("tcp", "google.com:80")
 //     Dial("tcp", "[de:ad:be:ef::ca:fe]:80")
 //
-// For IP networks, addr must be "ip", "ip4" or "ip6" followed
+// For IP networks, net must be "ip", "ip4" or "ip6" followed
 // by a colon and a protocol number or name.
 //
 // Examples:
index 1b157daef11b868a3efe8609d7e48dfe1cc1e715..57e04bb6cad80f6e2ed7f9378e223b8c4cd6c4bb 100644 (file)
@@ -582,7 +582,7 @@ func (fd *netFD) accept(toAddr func(syscall.Sockaddr) Addr) (netfd *netFD, err e
        }
        defer fd.decref()
 
-       // See ../syscall/exec.go for description of ForkLock.
+       // See ../syscall/exec_unix.go for description of ForkLock.
        // It is okay to hold the lock across syscall.Accept
        // because we have put fd.sysfd into non-blocking mode.
        var s int
index 45f5c2d882f136dd3a48ba50836c6b7c4aeb008c..4ae78397c33ca6240ba7002ba82510722220dd7f 100644 (file)
@@ -524,7 +524,7 @@ func (fd *netFD) accept(toAddr func(syscall.Sockaddr) Addr) (*netFD, error) {
        defer fd.decref()
 
        // Get new socket.
-       // See ../syscall/exec.go for description of ForkLock.
+       // See ../syscall/exec_unix.go for description of ForkLock.
        syscall.ForkLock.RLock()
        s, err := syscall.Socket(fd.family, fd.sotype, 0)
        if err != nil {
index e9e573547803af6472224b0c17c4002f47a367a0..dc5247a7f38e813952696e248d2abaac196ce4e2 100644 (file)
@@ -17,7 +17,7 @@ var listenerBacklog = maxListenerBacklog()
 
 // Generic socket creation.
 func socket(net string, f, t, p int, ipv6only bool, ulsa, ursa syscall.Sockaddr, toAddr func(syscall.Sockaddr) Addr) (fd *netFD, err error) {
-       // See ../syscall/exec.go for description of ForkLock.
+       // See ../syscall/exec_unix.go for description of ForkLock.
        syscall.ForkLock.RLock()
        s, err := syscall.Socket(f, t, p)
        if err != nil {