summaryrefslogtreecommitdiffhomepage
path: root/vala.html.markdown
diff options
context:
space:
mode:
Diffstat (limited to 'vala.html.markdown')
-rwxr-xr-xvala.html.markdown4
1 files changed, 2 insertions, 2 deletions
diff --git a/vala.html.markdown b/vala.html.markdown
index 3103f9c5..91059a92 100755
--- a/vala.html.markdown
+++ b/vala.html.markdown
@@ -119,11 +119,11 @@ foreach (int foreach_demo_var in foreach_demo) {
} // foreach works on any iterable collection
if (a == 0) {
- break;
+ stdout.printf("%d\n", a);
} else if (a > 1) {
stdout.printf("%d\n", a);
} else {
- break;
+ stdout.printf("A is less than 0");
} // if-then-else
switch (a) {