From f4643608adddcf80dea03965d38347e91b71bc87 Mon Sep 17 00:00:00 2001 From: Yiyu Lin Date: Sat, 5 Nov 2022 19:18:27 +0800 Subject: [PATCH] runtime: fix typo in expect message (#5169) --- tokio/src/future/block_on.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tokio/src/future/block_on.rs b/tokio/src/future/block_on.rs index fedcdacd614..2c2ab373617 100644 --- a/tokio/src/future/block_on.rs +++ b/tokio/src/future/block_on.rs @@ -5,7 +5,7 @@ cfg_rt! { pub(crate) fn block_on(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." );