summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-08-18 16:59:37 +0200
committerAndreas Rumpf <rumpf_a@web.de>2018-08-18 16:59:37 +0200
commitb2d5bfd076c3965dedfe3593e98351349672d6fd (patch)
tree64b3610c23806fa0e4f4bcb8fc1aca05e446727f /lib
parent887987bb1aa27e8fe7dae3a5835b90c76b9fbb12 (diff)
downloadNim-b2d5bfd076c3965dedfe3593e98351349672d6fd.tar.gz
changes $ for seqs to never produce 'nil'
Diffstat (limited to 'lib')
-rw-r--r--lib/system.nim5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/system.nim b/lib/system.nim
index 001eb19de..d61924a5b 100644
--- a/lib/system.nim
+++ b/lib/system.nim
@@ -2530,10 +2530,7 @@ proc `$`*[T](x: seq[T]): string =
   ##
   ## .. code-block:: nim
   ##   $(@[23, 45]) == "@[23, 45]"
-  if x.isNil:
-    "nil"
-  else:
-    collectionToString(x, "@[", ", ", "]")
+  collectionToString(x, "@[", ", ", "]")
 
 # ----------------- GC interface ---------------------------------------------