Skip to content

Commit

Permalink
fixes system.delete that raises defects (#22857)
Browse files Browse the repository at this point in the history
  • Loading branch information
ringabout authored Oct 23, 2023
1 parent 562a5fb commit 3095048
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/system.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 3095048

Please sign in to comment.