diff --git a/crates/neon/src/executor/mod.rs b/crates/neon/src/executor/mod.rs index 4d17389e5..ca2db9d02 100644 --- a/crates/neon/src/executor/mod.rs +++ b/crates/neon/src/executor/mod.rs @@ -25,6 +25,7 @@ pub trait Runtime: Send + Sync + 'static { /// to initialize the async runtime once in a process global and share it across instances. /// /// ``` +/// # fn main() { /// # #[cfg(feature = "tokio-rt-multi-thread")] /// # fn example() { /// # use neon::prelude::*; @@ -44,6 +45,7 @@ pub trait Runtime: Send + Sync + 'static { /// Ok(()) /// } /// # } +/// # } /// ``` pub fn set_global_executor(cx: &mut Cx, runtime: R) -> Result<(), R> where