Fix typo in an algorithm runnableExamples (#9260)
Fixes the 'koch docs' build failure.
Ref:
b90b45b01b
This commit is contained in:
parent
036c52f0b6
commit
c0266e1afa
1 changed files with 1 additions and 1 deletions
|
|
@ -272,7 +272,7 @@ func sort*[T](a: var openArray[T], order = SortOrder.Ascending) =
|
||||||
runnableExamples:
|
runnableExamples:
|
||||||
var s = @[1,3,2,5,4]
|
var s = @[1,3,2,5,4]
|
||||||
s.sort
|
s.sort
|
||||||
doAssert a == @[1,2,3,4,5]
|
doAssert s == @[1,2,3,4,5]
|
||||||
sort(a, system.cmp, order)
|
sort(a, system.cmp, order)
|
||||||
|
|
||||||
func sorted*[T](a: openArray[T], cmp: proc(x, y: T): int {.closure.},
|
func sorted*[T](a: openArray[T], cmp: proc(x, y: T): int {.closure.},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue