From 48c26358bdbce029d3e614635bd435d9dbd439c9 Mon Sep 17 00:00:00 2001 From: Gavin Cabbage Date: Sun, 30 Aug 2015 09:48:43 -0400 Subject: [PATCH] doc: fixed mixed up comments --- i2c.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/i2c.go b/i2c.go index 41244ea..6a5d1ec 100644 --- a/i2c.go +++ b/i2c.go @@ -5,9 +5,9 @@ package embd // I2CBus interface is used to interact with the I2C bus. type I2CBus interface { // ReadByte reads a byte from the given address. - ReadBytes(addr byte, num int) (value []byte, err error) - // ReadByte reads a slice of bytes from the given address. ReadByte(addr byte) (value byte, err error) + // ReadBytes reads a slice of bytes from the given address. + ReadBytes(addr byte, num int) (value []byte, err error) // WriteByte writes a byte to the given address. WriteByte(addr, value byte) error // WriteBytes writes a slice bytes to the given address.