Fix missing link in Executor::enter doc comment

This commit is contained in:
Héctor Ramón Jiménez 2020-04-01 00:24:43 +02:00
parent 2fa6edf7a8
commit 4979635764

View file

@ -56,6 +56,8 @@ pub trait Executor: Sized {
/// before creating futures. This method can be leveraged to set up this
/// global state, call a function, restore the state, and obtain the result
/// of the call.
///
/// [`Executor`]: trait.Executor.html
fn enter<R>(&self, f: impl FnOnce() -> R) -> R {
f()
}