From c034e633f07d7cde1ca3bf5ac9a2dd4b8f6c244e Mon Sep 17 00:00:00 2001 From: Diego Barrios Romero Date: Sun, 21 Jun 2020 23:44:18 +0200 Subject: Improve documentation example --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 0c28c18..418fc46 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -106,8 +106,8 @@ //! use ads1x1x::{Ads1x1x, SlaveAddr}; //! //! let dev = I2cdev::new("/dev/i2c-1").unwrap(); -//! let (a1, a0) = (true, false); -//! let address = SlaveAddr::Alternative(a1, a0); +//! let (bit1, bit0) = (true, false); // last two bits of address +//! let address = SlaveAddr::Alternative(bit1, bit0); //! let adc = Ads1x1x::new_ads1013(dev, address); //! ``` -- cgit v1.2.3-54-g00ecf