Skip to content

Commit 7881fad

Browse files
committed
"fix" doctest
1 parent 645b58f commit 7881fad

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -265,12 +265,12 @@ where
265265
/// see the Mode struct for possible values
266266
/// # Usage
267267
///
268-
/// ```rust
268+
/// ```text
269269
/// my_hx711.set_mode_async(Mode::ChAGain128).await?;
270-
/// value1_chanel_a = my_hx711.read_async().await?
271-
/// value2_chanel_a = my_hx711.read_async().await?
270+
/// value1_chanel_a = my_hx711.read_async().await?;
271+
/// value2_chanel_a = my_hx711.read_async().await?;
272272
/// my_hx711.set_mode_async(Mode::ChBGain32).await?;
273-
/// value_chanel_b = my_hx711.read_async().await?
273+
/// value_chanel_b = my_hx711.read_async().await?;
274274
///```
275275
/// # Errors
276276
/// Returns `SPI` errors

0 commit comments

Comments
 (0)