diff options
author | ringabout <43030857+ringabout@users.noreply.github.com> | 2023-10-23 22:56:52 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-23 22:56:52 +0800 |
commit | 3095048d674b0cc17dfbf221f81e13a1dc1eb6c0 (patch) | |
tree | b4505a27196c50364e82de0d4286b7c39249519a /lib/system.nim | |
parent | 562a5fb8f9df8985be2543e5581252e449d6ae09 (diff) | |
download | Nim-3095048d674b0cc17dfbf221f81e13a1dc1eb6c0.tar.gz |
fixes `system.delete` that raises defects (#22857)
Diffstat (limited to 'lib/system.nim')
-rw-r--r-- | lib/system.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/system.nim b/lib/system.nim index 8d1cda868..1d81c3f22 100644 --- a/lib/system.nim +++ b/lib/system.nim @@ -1981,7 +1981,7 @@ when defined(nimAuditDelete): else: {.pragma: auditDelete.} -proc delete*[T](x: var seq[T], i: Natural) {.noSideEffect, auditDelete.} = +proc delete*[T](x: var seq[T], i: Natural) {.noSideEffect, systemRaisesDefect, auditDelete.} = ## Deletes the item at index `i` by moving all `x[i+1..^1]` items by one position. ## ## This is an `O(n)` operation. |