mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-14 15:23:27 +00:00
BUGFIX: system.insert
This commit is contained in:
@@ -719,7 +719,7 @@ proc insert*[T](x: var seq[T], item: T, i = 0) {.noSideEffect.} =
|
||||
var j = xl-1
|
||||
while j >= i:
|
||||
x[j+1] = x[j]
|
||||
inc(j)
|
||||
dec(j)
|
||||
x[i] = item
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user