fix deprecated stuff (#144)
This commit is contained in:
parent
5f21dcdc56
commit
80f500874b
2 changed files with 2 additions and 2 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue