mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-16 08:04:20 +00:00
Fix typo in an algorithm runnableExamples (#9260)
Fixes the 'koch docs' build failure.
Ref:
b90b45b01b
This commit is contained in:
committed by
Andreas Rumpf
parent
036c52f0b6
commit
c0266e1afa
@@ -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.},
|
||||
|
||||
Reference in New Issue
Block a user