diff options
author | Naja Melan <najamelan@autistici.org> | 2020-10-29 11:10:42 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-29 12:10:42 +0100 |
commit | 34eb47dde51d4c37d95cde5a1610b6852f8a24b1 (patch) | |
tree | 40b38fa64ed40382caa2eb941bbb8a55040d298b | |
parent | c8a484bbb2809675e5b22ac579481c4950dd70e9 (diff) |
runtime: block_on should NOT be called from async context (#3070)
-rw-r--r-- | tokio/src/runtime/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tokio/src/runtime/mod.rs b/tokio/src/runtime/mod.rs index be4aa38b..01788b9c 100644 --- a/tokio/src/runtime/mod.rs +++ b/tokio/src/runtime/mod.rs @@ -415,7 +415,7 @@ cfg_rt! { /// /// # Panics /// - /// This function panics if the provided future panics, or if not called within an + /// This function panics if the provided future panics, or if called within an /// asynchronous execution context. /// /// # Examples |