mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-09-28 12:10:37 +00:00
doc(spawn_fn): Fix typo
This commit is contained in:
parent
1d40bf14f7
commit
f62d1ddc8d
@ -582,7 +582,7 @@ impl Handle {
|
||||
/// This function is a convenience wrapper around the `spawn` function above
|
||||
/// for running a closure wrapped in `futures::lazy`. It will spawn the
|
||||
/// function `f` provided onto the event loop, and continue to run the
|
||||
/// future returned by `f` on the evnet loop as well.
|
||||
/// future returned by `f` on the event loop as well.
|
||||
pub fn spawn_fn<F, R>(&self, f: F)
|
||||
where F: FnOnce() -> R + 'static,
|
||||
R: IntoFuture<Item=(), Error=()> + 'static,
|
||||
|
Loading…
x
Reference in New Issue
Block a user