diff --git a/text/0000-scoped-take-2.md b/text/0000-scoped-take-2.md index b7590f382ca..3bfc8964b90 100644 --- a/text/0000-scoped-take-2.md +++ b/text/0000-scoped-take-2.md @@ -98,11 +98,10 @@ To recover scoped threads, we extend the `Scope` type with a method for spawning threads: ```rust -impl<'defer> Scope<'defer> { - pub fn spawn<'body, F, T>(&self, f: F) -> thread::JoinHandle where - 'defer: 'body, // anything borrowed by the body must outlive the Scope - F: FnOnce() -> T + Send + 'body, - T: Send + 'body; +impl<'a> Scope<'a> { + pub fn spawn(&self, f: F) -> thread::JoinHandle<'a, T> where + F: FnOnce() -> T + Send + 'a, + T: Send + 'a; } ```