summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/lib.rs4
1 files 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);
//! ```