From 44692399be742333c2ca252b472b7afb89f9f940 Mon Sep 17 00:00:00 2001 From: hzlinyiyu Date: Sat, 5 Nov 2022 11:26:41 +0800 Subject: [PATCH] chore: fix typo in expect message --- 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." );