aboutsummaryrefslogtreecommitdiff
path: root/examples/hello.sloth
diff options
context:
space:
mode:
Diffstat (limited to 'examples/hello.sloth')
-rw-r--r--examples/hello.sloth3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/hello.sloth b/examples/hello.sloth
index 0da2fd0..fea5304 100644
--- a/examples/hello.sloth
+++ b/examples/hello.sloth
@@ -1,6 +1,7 @@
fn main() {
var i: Int = 10;
- while i > 0 {
+ var j: Int = int(1.0) - 1;
+ while i > j {
i = i - 1;
}
}