Minor fixes

This commit is contained in:
def 2014-07-16 22:36:17 +02:00
commit 0ec510af11
7 changed files with 21 additions and 20 deletions

View file

@ -31,14 +31,14 @@ else:
proc positiveOrNegative(num: int): string =
result = case num
of low(int)..-1:
"negative"
of 0:
"zero"
of 1..high(int):
"positive"
else:
"impossible"
of low(int)..-1:
"negative"
of 0:
"zero"
of 1..high(int):
"positive"
else:
"impossible"
echo positiveOrNegative(-1)
```
@ -63,4 +63,4 @@ of 10: echo "D"
``` console
$ nimrod c -r ./case_stmts_1.nim
C
```
```