Skip to content

Commit

Permalink
Merge pull request #46 from OverShifted/master
Browse files Browse the repository at this point in the history
Add 'async' to two functions to fix a compile error
  • Loading branch information
nikomatsakis authored Oct 1, 2024
2 parents 81ebd6e + 9db43f3 commit 088fac7
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 088fac7

Please sign in to comment.