diff --git a/doc/langref.html.in b/doc/langref.html.in
index 58b63f7f40..92fae2347d 100644
--- a/doc/langref.html.in
+++ b/doc/langref.html.in
@@ -4733,8 +4733,8 @@ test "resume from suspend" {
std.debug.assert(my_result == 2);
}
async fn testResumeFromSuspend(my_result: *i32) void {
- suspend |p| {
- resume p;
+ suspend {
+ resume @handle();
}
my_result.* += 1;
suspend;