summaryrefslogtreecommitdiffhomepage
path: root/conn/bind_std_test.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2023-03-13 17:55:05 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2023-03-13 17:55:53 +0100
commit0ad14a89f5f9da577dae6a63ad196015e51a0381 (patch)
treeda74ec4dd4dd79b3577236bc30b42ea999e8516b /conn/bind_std_test.go
parent7d327ed35aef08e2f54c12645a3002c94c6aec91 (diff)
global: buff -> buf
This always struck me as kind of weird and non-standard. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'conn/bind_std_test.go')
-rw-r--r--conn/bind_std_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/conn/bind_std_test.go b/conn/bind_std_test.go
index 76afa30..1e46776 100644
--- a/conn/bind_std_test.go
+++ b/conn/bind_std_test.go
@@ -9,14 +9,14 @@ func TestStdNetBindReceiveFuncAfterClose(t *testing.T) {
t.Fatal(err)
}
bind.Close()
- buffs := make([][]byte, 1)
- buffs[0] = make([]byte, 1)
+ bufs := make([][]byte, 1)
+ bufs[0] = make([]byte, 1)
sizes := make([]int, 1)
eps := make([]Endpoint, 1)
for _, fn := range fns {
// The ReceiveFuncs must not access conn-related fields on StdNetBind
// unguarded. Close() nils the conn-related fields resulting in a panic
// if they violate the mutex.
- fn(buffs, sizes, eps)
+ fn(bufs, sizes, eps)
}
}