Update readme.rst (#184)
This commit is contained in:
parent
0fca6e961d
commit
8a7f05ac2a
1 changed files with 2 additions and 2 deletions
|
|
@ -86,7 +86,7 @@ construction so that it composes with all of Nim's control flow constructs:
|
|||
|
||||
proc createDom(): VNode =
|
||||
result = buildHtml(tdiv):
|
||||
if random(100) <= 50:
|
||||
if rand(100) <= 50:
|
||||
text "Hello World!"
|
||||
else:
|
||||
text "Hello Universe"
|
||||
|
|
@ -100,7 +100,7 @@ Produces:
|
|||
.. code-block:: nim
|
||||
|
||||
let tmp1 = tree(VNodeKind.tdiv)
|
||||
if random(100) <= 50:
|
||||
if rand(100) <= 50:
|
||||
add(tmp1, text "Hello World!")
|
||||
else:
|
||||
add(tmp1, text "Hello Universe")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue