Skip to content

Commit

Permalink
#136 Fixed doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
la10736 committed May 15, 2022
1 parent d0b3cd2 commit 1b05b83
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions rstest_macros/src/lib.rs
Expand Up @@ -760,6 +760,13 @@ pub fn fixture(
/// duration.
///
/// ```rust
/// # use rstest::*;
/// # use std::time::Duration;
/// #
/// # async fn delayed_sum(a: u32, b: u32,delay: Duration) -> u32 {
/// # async_std::task::sleep(delay).await;
/// # a + b
/// # }
/// fn ms(ms: u32) -> Duration {
/// Duration::from_millis(ms.into())
/// }
Expand Down

0 comments on commit 1b05b83

Please sign in to comment.