Update import in if_else_while.md example

This example doesn't compile with nim-0.15. Importing *random* instead of *math* made the trick for me.
This commit is contained in:
Fabio Riga 2016-11-01 18:14:47 +01:00 • committed by Flaviu Tamas
commit a6cec6fe80

View file

@ -11,7 +11,7 @@ When inside a loop, `continue` can be used to skip the rest of the loop body and
Along with [its other uses](/block/), the `block` statement can be used to create a label so that it's possible to break out of nested loops.
<!--skip-->``` nim
import strutils, math
import strutils, random
randomize()
let answer = random(10) + 1