Fix typo in an algorithm runnableExamples (#9260)

Fixes the 'koch docs' build failure.

Ref:
b90b45b01b
This commit is contained in:
Kaushal Modi
2018-10-09 09:36:36 -04:00
committed by Andreas Rumpf
parent 036c52f0b6
commit c0266e1afa

View File

@@ -272,7 +272,7 @@ func sort*[T](a: var openArray[T], order = SortOrder.Ascending) =
runnableExamples:
var s = @[1,3,2,5,4]
s.sort
doAssert a == @[1,2,3,4,5]
doAssert s == @[1,2,3,4,5]
sort(a, system.cmp, order)
func sorted*[T](a: openArray[T], cmp: proc(x, y: T): int {.closure.},