From 404e4b026888471d50ff74306a9c3ec75039f6a9 Mon Sep 17 00:00:00 2001 From: Shritesh Bhattarai Date: Sat, 8 Jun 2019 12:49:56 -0700 Subject: [PATCH] docs: add comment about for else and break --- doc/langref.html.in | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/langref.html.in b/doc/langref.html.in index a98705afd5..ba093881ab 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -3293,6 +3293,7 @@ test "for else" { var items = []?i32 { 3, 4, null, 5 }; // For loops can also be used as expressions. + // Similar to while loops, when you break from a for loop, the else branch is not evaluated. var sum: i32 = 0; const result = for (items) |value| { if (value == null) {