runtime: fix typo in expect message (#5169)

This commit is contained in:
Yiyu Lin
2022-11-05 11:18:27 +00:00
committed by GitHub
parent 687aa2bae5
commit f4643608ad
+1 -1
View File
@@ -5,7 +5,7 @@ cfg_rt! {
pub(crate) fn block_on<F: Future>(f: F) -> F::Output {
let mut e = crate::runtime::context::try_enter_blocking_region().expect(
"Cannot block the current thread from within a runtime. This \
happens because a functionattempted to block the current \
happens because a function attempted to block the current \
thread while the thread is being used to drive asynchronous \
tasks."
);