diff options
Diffstat (limited to 'tokio-executor/src/executor.rs')
-rw-r--r-- | tokio-executor/src/executor.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tokio-executor/src/executor.rs b/tokio-executor/src/executor.rs index 3df6bbc2..964a4099 100644 --- a/tokio-executor/src/executor.rs +++ b/tokio-executor/src/executor.rs @@ -149,7 +149,7 @@ impl dyn Executor { /// println!("running on the executor"); /// })).unwrap(); /// - /// handle.map(|_| println!("the future has completed")); + /// let handle = handle.map(|_| println!("the future has completed")); /// # } /// ``` pub fn spawn_with_handle<Fut>( |