From 0ae97c430f4082e94730a1b220f75db1add65270 Mon Sep 17 00:00:00 2001 From: Diego Barrios Romero Date: Wed, 21 Nov 2018 08:03:24 +0100 Subject: Update docs --- src/interface.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/interface.rs b/src/interface.rs index 3b42182..f93c680 100644 --- a/src/interface.rs +++ b/src/interface.rs @@ -16,7 +16,7 @@ pub struct I2cInterface { pub trait WriteData : private::Sealed { /// Error type type Error; - /// Write to an u8 register + /// Write to an u16 register fn write_register(&mut self, register: u8, data: u16) -> Result<(), Error>; } @@ -37,7 +37,7 @@ where pub trait ReadData : private::Sealed { /// Error type type Error; - /// Read an u8 register + /// Read an u16 register fn read_register(&mut self, register: u8) -> Result>; } -- cgit v1.2.3-54-g00ecf