diff options
Diffstat (limited to 'examples/hello.sloth')
| -rw-r--r-- | examples/hello.sloth | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/hello.sloth b/examples/hello.sloth index fea5304..8b395e8 100644 --- a/examples/hello.sloth +++ b/examples/hello.sloth @@ -1,8 +1,9 @@ fn main() { var i: Int = 10; - var j: Int = int(1.0) - 1; + var j: Int = 1.0 - 1; while i > j { i = i - 1; } + example(i); } |
