Merge pull request #47 from oberien/spawn_fn

doc(spawn_fn): Fix typo
This commit is contained in:
Alex Crichton
2016-09-28 10:22:47 +09:00
committed by GitHub
+1 -1
View File
@@ -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,