mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-18 23:11:36 +00:00
Comment on isSorted complexity. (#10686) [ci skip]
This commit is contained in:
@@ -511,7 +511,7 @@ func isSorted*[T](a: openArray[T],
|
||||
order = SortOrder.Ascending): bool =
|
||||
## Checks to see whether ``a`` is already sorted in ``order``
|
||||
## using ``cmp`` for the comparison. Parameters identical
|
||||
## to ``sort``.
|
||||
## to ``sort``. Requires O(n) time.
|
||||
##
|
||||
## **See also:**
|
||||
## * `isSorted proc<#isSorted,openArray[T]>`_
|
||||
|
||||
Reference in New Issue
Block a user