mirror of
https://github.com/icewind1991/mhz19-rs
synced 2026-06-03 09:34:12 +02:00
dont test doc comments
This commit is contained in:
parent
202efddcc9
commit
2aaebbf883
2 changed files with 3 additions and 3 deletions
|
|
@ -9,6 +9,6 @@ use mhz19::MHZ19;
|
|||
|
||||
fn main() {
|
||||
let mut mhz19 = MHZ19::open("/dev/ttyUSB0").unwrap();
|
||||
println("CO₂ readout: {} ppm", mhz19.read().unwrap());
|
||||
println!("CO₂ readout: {} ppm", mhz19.read().unwrap());
|
||||
}
|
||||
```
|
||||
|
|
@ -32,12 +32,12 @@ pub type Result<T> = std::result::Result<T, Error>;
|
|||
///
|
||||
/// ## Usage
|
||||
///
|
||||
/// ```
|
||||
/// ```rust,no_run
|
||||
/// use mhz19::MHZ19;
|
||||
///
|
||||
/// fn main() {
|
||||
/// let mut mhz19 = MHZ19::open("/dev/ttyUSB0").unwrap();
|
||||
/// println("CO₂ readout: {} ppm", mhz19.read().unwrap());
|
||||
/// println!("CO₂ readout: {} ppm", mhz19.read().unwrap());
|
||||
/// }
|
||||
/// ```
|
||||
pub struct MHZ19 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue