document -d:nimStrictDelete [backport] (#18939)
This commit is contained in:
parent
e9268b52d9
commit
45c4332c81
1 changed files with 4 additions and 0 deletions
|
|
@ -2142,6 +2142,10 @@ proc delete*[T](x: var seq[T], i: Natural) {.noSideEffect, auditDelete.} =
|
|||
##
|
||||
## This is an `O(n)` operation.
|
||||
##
|
||||
## .. note:: With `-d:nimStrictDelete`, an index error is produced when the index passed
|
||||
## to it was out of bounds. `-d:nimStrictDelete` will become the default
|
||||
## in upcoming versions.
|
||||
##
|
||||
## See also:
|
||||
## * `del <#del,seq[T],Natural>`_ for O(1) operation
|
||||
##
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue