BUGFIX: system.insert
This commit is contained in:
parent
6ecbed7284
commit
c7bd3f94cd
1 changed files with 1 additions and 1 deletions
|
|
@ -719,7 +719,7 @@ proc insert*[T](x: var seq[T], item: T, i = 0) {.noSideEffect.} =
|
||||||
var j = xl-1
|
var j = xl-1
|
||||||
while j >= i:
|
while j >= i:
|
||||||
x[j+1] = x[j]
|
x[j+1] = x[j]
|
||||||
inc(j)
|
dec(j)
|
||||||
x[i] = item
|
x[i] = item
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue