From 80f500874b71aff061739b2d1e2eadc7b2e68624 Mon Sep 17 00:00:00 2001 From: Miran Date: Mon, 27 Apr 2020 10:59:54 +0200 Subject: [PATCH] fix deprecated stuff (#144) --- examples/hellouniverse.nim | 2 +- karax/compact.nim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/hellouniverse.nim b/examples/hellouniverse.nim index 9d6ebc6..c07435b 100644 --- a/examples/hellouniverse.nim +++ b/examples/hellouniverse.nim @@ -4,7 +4,7 @@ import random proc createDom(): VNode = result = buildHtml(tdiv): - if random(100) <= 50: + if rand(100) <= 50: text "Hello World!" else: text "Hello Universe" diff --git a/karax/compact.nim b/karax/compact.nim index 3363802..4e5dd6d 100644 --- a/karax/compact.nim +++ b/karax/compact.nim @@ -61,7 +61,7 @@ proc newname*(n: NimNode): NimNode = n[1] = newname(n[1]) result = n elif n.kind == nnkSym: - result = ident($n.symbol) + result = ident(n.strVal) else: result = n