summary refs log tree commit diff stats
path: root/lib/system.nim
diff options
context:
space:
mode:
authorTimothee Cour <timothee.cour2@gmail.com>2021-05-14 15:33:17 -0700
committerGitHub <noreply@github.com>2021-05-14 15:33:17 -0700
commit2ce592a209f4cd7f59c009a01e4ac4037e63a7bd (patch)
treed715b1a8e9c4875f5b88ecc54dfb312570a5fc8e /lib/system.nim
parent97970d9dccb24bb290cdba14275acae62602c832 (diff)
downloadNim-2ce592a209f4cd7f59c009a01e4ac4037e63a7bd.tar.gz
refs #18011 disable some newly failing tests on cpp windows; refs #17946 increase timeout for tchannels (#18012)
Diffstat (limited to 'lib/system.nim')
-rw-r--r--lib/system.nim8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/system.nim b/lib/system.nim
index 9317c3440..be30665dd 100644
--- a/lib/system.nim
+++ b/lib/system.nim
@@ -1317,10 +1317,10 @@ proc del*[T](x: var seq[T], i: Natural) {.noSideEffect.} =
   ##
   ## See also:
   ## * `delete <#delete,seq[T],Natural>`_ for preserving the order
-  ##
-  ## .. code-block:: Nim
-  ##  var i = @[1, 2, 3, 4, 5]
-  ##  i.del(2) # => @[1, 2, 5, 4]
+  runnableExamples:
+    var a = @[10, 11, 12, 13, 14]
+    a.del(2)
+    assert a == @[10, 11, 14, 13]
   let xl = x.len - 1
   movingCopy(x[i], x[xl])
   setLen(x, xl)