Skip to content
Snippets Groups Projects
Commit ede53472 authored by Per Lindgren's avatar Per Lindgren
Browse files

add `;` to while, to make parsing life easier

parent 93c15c7c
Branches
No related tags found
No related merge requests found
...@@ -61,7 +61,7 @@ fn _if_then_else_and_while() { ...@@ -61,7 +61,7 @@ fn _if_then_else_and_while() {
let mut c: i32 = 1; let mut c: i32 = 1;
while (b < 10) { while (b < 10) {
c = c * 2; c = c * 2;
} }; // added ";" here... to make parsing easier, it is still valid Rust though
c c
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment