diff options
author | Kaushal Modi <kaushal.modi@gmail.com> | 2018-10-09 09:36:36 -0400 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-10-09 15:36:36 +0200 |
commit | c0266e1afa0cde01d3aca1d717c7200dfb977b86 (patch) | |
tree | cf4d551fe96b5c01e248586eb218668dcf642bad /lib/pure | |
parent | 036c52f0b626277970f7173327616e7536d871d1 (diff) | |
download | Nim-c0266e1afa0cde01d3aca1d717c7200dfb977b86.tar.gz |
Fix typo in an algorithm runnableExamples (#9260)
Fixes the 'koch docs' build failure. Ref: https://github.com/nim-lang/Nim/commit/b90b45b01bba1f3fc241a96abd4ae5c8c314bb92
Diffstat (limited to 'lib/pure')
-rw-r--r-- | lib/pure/algorithm.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/algorithm.nim b/lib/pure/algorithm.nim index aea005ff1..366a85ab5 100644 --- a/lib/pure/algorithm.nim +++ b/lib/pure/algorithm.nim @@ -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.}, |