summaryrefslogtreecommitdiff
path: root/src/function.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/function.rs')
-rw-r--r--src/function.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/function.rs b/src/function.rs
index 37ebc01..b992584 100644
--- a/src/function.rs
+++ b/src/function.rs
@@ -167,14 +167,13 @@ impl<'lua> Function<'lua> {
///
/// ```
/// use std::time::Duration;
- /// use futures_timer::Delay;
/// # use mlua::{Lua, Result};
/// # #[tokio::main]
/// # async fn main() -> Result<()> {
/// # let lua = Lua::new();
///
/// let sleep = lua.create_async_function(move |_lua, n: u64| async move {
- /// Delay::new(Duration::from_millis(n)).await;
+ /// tokio::time::sleep(Duration::from_millis(n)).await;
/// Ok(())
/// })?;
///