Fixed errors
This commit is contained in:
+25
-25
@@ -91,33 +91,33 @@ pub class Application {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub i32 loops_test() {
|
||||
for (x : 0..10) {
|
||||
println!("{x}");
|
||||
}
|
||||
|
||||
for (var mut i = 0; i < 10; i++) {
|
||||
println!("{i}");
|
||||
}
|
||||
|
||||
var i = 0;
|
||||
|
||||
while (i == 0) {
|
||||
println!("hi");
|
||||
}
|
||||
|
||||
loop {
|
||||
println!("loop!");
|
||||
}
|
||||
|
||||
if (x == 0) bro();
|
||||
else bro();
|
||||
|
||||
i32 test_stmt() {
|
||||
if (0 == 0) {
|
||||
0
|
||||
}
|
||||
else {
|
||||
1
|
||||
}
|
||||
}
|
||||
|
||||
pub i32 bro() {
|
||||
0
|
||||
}
|
||||
void loops_test() {
|
||||
for (x : 0..10) {
|
||||
println!("{x}");
|
||||
}
|
||||
|
||||
for (var mut i = 0; i < 10; i++) {
|
||||
println!("{i}");
|
||||
}
|
||||
|
||||
var i = 0;
|
||||
|
||||
while (i == 1) {
|
||||
println!("hi");
|
||||
}
|
||||
|
||||
loop {
|
||||
println!("loop!");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user