From c0266e1afa0cde01d3aca1d717c7200dfb977b86 Mon Sep 17 00:00:00 2001 From: Kaushal Modi Date: Tue, 9 Oct 2018 09:36:36 -0400 Subject: Fix typo in an algorithm runnableExamples (#9260) Fixes the 'koch docs' build failure. Ref: https://github.com/nim-lang/Nim/commit/b90b45b01bba1f3fc241a96abd4ae5c8c314bb92 --- lib/pure/algorithm.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/pure') 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.}, -- cgit 1.4.1-2-gfad0