diff --git a/babysteps/_posts/2023-03-29-thoughts-on-async-closures.md b/babysteps/_posts/2023-03-29-thoughts-on-async-closures.md index ddca2b04..ad143e40 100644 --- a/babysteps/_posts/2023-03-29-thoughts-on-async-closures.md +++ b/babysteps/_posts/2023-03-29-thoughts-on-async-closures.md @@ -42,7 +42,7 @@ Given that an async function is just a sync function that returns a future, perh ```rust -fn call_twice_async(op: impl FnMut(&str) -> F) +async fn call_twice_async(op: impl FnMut(&str) -> F) where F: Future, { diff --git a/content/blog/2023-03-29-thoughts-on-async-closures.markdown b/content/blog/2023-03-29-thoughts-on-async-closures.markdown index ddca2b04..ad143e40 100644 --- a/content/blog/2023-03-29-thoughts-on-async-closures.markdown +++ b/content/blog/2023-03-29-thoughts-on-async-closures.markdown @@ -42,7 +42,7 @@ Given that an async function is just a sync function that returns a future, perh ```rust -fn call_twice_async(op: impl FnMut(&str) -> F) +async fn call_twice_async(op: impl FnMut(&str) -> F) where F: Future, {