Skip to content

Commit

Permalink
fix suspense example in the snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
Madoshakalaka committed Jan 12, 2022
1 parent c2eabd4 commit df813ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/docs/concepts/suspense.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ fn load_user() -> Option<User> {
todo!() // implementation omitted.
}

fn on_load_user_complete<F: Fn()>(_fn: F) {
fn on_load_user_complete<F: FnOnce()>(_fn: F) {
todo!() // implementation omitted.
}

Expand Down

0 comments on commit df813ca

Please sign in to comment.