From dc10d3b6dea416f9f8c23e1672f5145ee36da44a Mon Sep 17 00:00:00 2001 From: Josh Deprez Date: Mon, 11 Jan 2021 13:59:50 +1100 Subject: [PATCH] typo --- sungrow.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sungrow.go b/sungrow.go index 6b004be..2b9ba8d 100644 --- a/sungrow.go +++ b/sungrow.go @@ -97,7 +97,7 @@ func (c *sungrowConn) Read(out []byte) (int, error) { pktlen, padlen := int(hdr[2]), int(hdr[3]) bs := c.block.BlockSize() if (pktlen+padlen)%bs != 0 { - return 0, fmt.Errorf("pktlen + padlen = %d + %d = %d, want divisble by %d", pktlen, padlen, pktlen+padlen, bs) + return 0, fmt.Errorf("pktlen + padlen = %d + %d = %d, want divisible by %d", pktlen, padlen, pktlen+padlen, bs) } pkt := make([]byte, pktlen+padlen) if _, err := io.ReadFull(c.Conn, pkt); err != nil {