summary refs log tree commit diff stats
path: root/examples/htmlrefs.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2014-02-16 11:31:03 +0100
committerAndreas Rumpf <rumpf_a@web.de>2014-02-16 11:31:03 +0100
commit18c47b9e13e289cd4410ac4483f80c8d27450bcd (patch)
treea09a0e48025c79fee103b16f19140f533b7c6847 /examples/htmlrefs.nim
parentf701ee086aacf3ad9d4f58c20d5924fc0c5b3bb2 (diff)
parentce5a494927abf66cc39cf849b9c66e2dadbe579e (diff)
downloadNim-18c47b9e13e289cd4410ac4483f80c8d27450bcd.tar.gz
Merge pull request #928 from Varriount/testement/nil-to-discard
Changed tests and tools to use 'discard' statements
Diffstat (limited to 'examples/htmlrefs.nim')
-rw-r--r--examples/htmlrefs.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/htmlrefs.nim b/examples/htmlrefs.nim
index 824c1d8c7..8b668325f 100644
--- a/examples/htmlrefs.nim
+++ b/examples/htmlrefs.nim
@@ -36,7 +36,7 @@ block mainLoop:
               case x.kind
               of xmlEof: break mainLoop
               of xmlElementClose: break
-              else: nil
+              else: discard
             x.next() # skip ``xmlElementClose``
             # now we have the description for the ``a`` element
             var desc = ""