even more sys assertions
This commit is contained in:
parent
2673d73366
commit
76886432da
6 changed files with 68 additions and 33 deletions
|
|
@ -95,6 +95,9 @@ proc sort*[T](a: var openArray[T],
|
|||
## .. code-block:: nimrod
|
||||
##
|
||||
## sort(myIntArray, system.cmp[int])
|
||||
##
|
||||
## # do not use cmp[string] here as we want to use the specialized
|
||||
## # overload:
|
||||
## sort(myStrArray, system.cmp)
|
||||
##
|
||||
var n = a.len
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue