Skip to content

Commit

Permalink
Add 'async' to two functions to fix a compile error
Browse files Browse the repository at this point in the history
Signed-off-by: OverShifted <[email protected]>
  • Loading branch information
OverShifted committed Sep 6, 2024
1 parent d456b9f commit 9db43f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion babysteps/_posts/2023-03-29-thoughts-on-async-closures.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Given that an async function is just a sync function that returns a future, perh


```rust
fn call_twice_async<F>(op: impl FnMut(&str) -> F)
async fn call_twice_async<F>(op: impl FnMut(&str) -> F)
where
F: Future<Output = ()>,
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Given that an async function is just a sync function that returns a future, perh


```rust
fn call_twice_async<F>(op: impl FnMut(&str) -> F)
async fn call_twice_async<F>(op: impl FnMut(&str) -> F)
where
F: Future<Output = ()>,
{
Expand Down

0 comments on commit 9db43f3

Please sign in to comment.