]> Cypherpunks repositories - gostls13.git/commitdiff
net: fix confusing typo in comment
authorRui Ueyama <ruiu@google.com>
Thu, 24 Apr 2014 19:24:22 +0000 (12:24 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 24 Apr 2014 19:24:22 +0000 (12:24 -0700)
LGTM=bradfitz
R=golang-codereviews, bradfitz
CC=golang-codereviews
https://golang.org/cl/93750043

src/pkg/net/port_unix.go

index 5b803e610064aec9ad147586fc92118e91dd639a..89558c1f029bc7221f6f54dad192a00e7c495ee4 100644 (file)
@@ -33,7 +33,7 @@ func readServices() {
                if len(f) < 2 {
                        continue
                }
-               portnet := f[1] // "tcp/80"
+               portnet := f[1] // "80/tcp"
                port, j, ok := dtoi(portnet, 0)
                if !ok || port <= 0 || j >= len(portnet) || portnet[j] != '/' {
                        continue