Merge branch 'devel' of github.com:nim-lang/Nim into devel
This commit is contained in:
commit
9303a02d6b
1 changed files with 1 additions and 1 deletions
|
|
@ -46,7 +46,7 @@ proc reverse*[T](a: var openArray[T], first, last: Natural) =
|
|||
|
||||
proc reverse*[T](a: var openArray[T]) =
|
||||
## reverses the array `a`.
|
||||
reverse(a, 0, a.high)
|
||||
reverse(a, 0, max(0, a.high))
|
||||
|
||||
proc reversed*[T](a: openArray[T], first: Natural, last: int): seq[T] =
|
||||
## returns the reverse of the array `a[first..last]`.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue