Fix missing link in Executor::enter doc comment
This commit is contained in:
parent
2fa6edf7a8
commit
4979635764
1 changed files with 2 additions and 0 deletions
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue