From d0cf0421717a93b705efcbce0770a24361582445 Mon Sep 17 00:00:00 2001 From: Josh Bleecher Snyder Date: Sat, 5 Nov 2016 10:05:27 -0700 Subject: [PATCH] net: fix vet nit net/fd_windows.go:121: syscall.WSABuf composite literal uses unkeyed fields Change-Id: I91cbe38199d5b6828379a854d08f6ceaf687dd82 Reviewed-on: https://go-review.googlesource.com/32760 Run-TryBot: Josh Bleecher Snyder Reviewed-by: Brad Fitzpatrick --- src/net/fd_windows.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net/fd_windows.go b/src/net/fd_windows.go index 40b4aa1d7a..a976f2ac7f 100644 --- a/src/net/fd_windows.go +++ b/src/net/fd_windows.go @@ -118,7 +118,7 @@ func (o *operation) InitBufs(buf *Buffers) { if len(b) > 0 { p = &b[0] } - o.bufs = append(o.bufs, syscall.WSABuf{uint32(len(b)), p}) + o.bufs = append(o.bufs, syscall.WSABuf{Len: uint32(len(b)), Buf: p}) } }