mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-31 10:22:15 +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