From cbdc43cf9aef339a734896a9f9f03491d8ad4df5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Justin=20Nu=C3=9F?= Date: Sat, 10 Oct 2015 20:32:50 +0200 Subject: [PATCH] Fix variable name in comment --- rpc_util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpc_util.go b/rpc_util.go index c0519ded..4be93ff5 100644 --- a/rpc_util.go +++ b/rpc_util.go @@ -183,7 +183,7 @@ func encode(c Codec, msg interface{}, pf payloadFormat) ([]byte, error) { // Write payload format buf[0] = byte(pf) - // Write length of msg into buf + // Write length of b into buf binary.BigEndian.PutUint32(buf[1:], length) // Copy encoded msg to buf copy(buf[5:], b)