From a6cec6fe80436fc66ffbfa313eb2424971c7c16b Mon Sep 17 00:00:00 2001 From: Fabio Riga Date: Tue, 1 Nov 2016 18:14:47 +0100 Subject: [PATCH] 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. --- content/content/if_else_while.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/content/if_else_while.md b/content/content/if_else_while.md index 026d43a..93b01c7 100644 --- a/content/content/if_else_while.md +++ b/content/content/if_else_while.md @@ -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. ``` nim -import strutils, math +import strutils, random randomize() let answer = random(10) + 1