Commit a1ebb376 authored by Matt Robenolt's avatar Matt Robenolt Committed by Brad Fitzpatrick

net: fix typo in lookup_windows getprotobyname

Change-Id: Ia6d40ead1e54dd0b8998370cbabc2d7cd8b7aa0b
Reviewed-on: https://go-review.googlesource.com/18470Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent 57b1e55a
......@@ -19,7 +19,7 @@ var (
func getprotobyname(name string) (proto int, err error) {
p, err := syscall.GetProtoByName(name)
if err != nil {
return 0, os.NewSyscallError("getorotobyname", err)
return 0, os.NewSyscallError("getprotobyname", err)
}
return int(p.Proto), nil
}
......
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