[backport] fix #13352
This commit is contained in:
parent
b2c6db97f9
commit
36d1ad39d0
2 changed files with 6 additions and 1 deletions
|
|
@ -31,7 +31,9 @@
|
||||||
## (year: 2010, name: "Jane")]
|
## (year: 2010, name: "Jane")]
|
||||||
##
|
##
|
||||||
## proc myCmp(x, y: People): int =
|
## proc myCmp(x, y: People): int =
|
||||||
## if x.name < y.name: -1 else: 1
|
## if x.name < y.name: -1
|
||||||
|
## elif x.name == y.name: 0
|
||||||
|
## else: 1
|
||||||
##
|
##
|
||||||
## # Sorting with custom proc
|
## # Sorting with custom proc
|
||||||
## a.sort(myCmp)
|
## a.sort(myCmp)
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,9 @@
|
||||||
# distribution, for details about the copyright.
|
# distribution, for details about the copyright.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
## This is a part of ``system.nim``, you should not manually import it.
|
||||||
|
|
||||||
|
|
||||||
include inclrtl
|
include inclrtl
|
||||||
import formatfloat
|
import formatfloat
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue