diff --git a/doc/langref.html.in b/doc/langref.html.in
index cf12894ca6ebb87d2e29b255232d95e81f0711b2..95c1d2eee0df3210b2cd694ea0ef219d37f114f2 100644
--- a/doc/langref.html.in
+++ b/doc/langref.html.in
@@ -3128,7 +3128,7 @@ test "while null capture" {
while (eventuallyNullSequence()) |value| {
sum2 += value;
} else {
- assert(sum1 == 3);
+ assert(sum2 == 3);
}
}