diff options
-rw-r--r-- | lib/pure/algorithm.nim | 4 | ||||
-rw-r--r-- | lib/system/io.nim | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/lib/pure/algorithm.nim b/lib/pure/algorithm.nim index d40b2fd63..67df2a7c0 100644 --- a/lib/pure/algorithm.nim +++ b/lib/pure/algorithm.nim @@ -31,7 +31,9 @@ ## (year: 2010, name: "Jane")] ## ## 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 ## a.sort(myCmp) diff --git a/lib/system/io.nim b/lib/system/io.nim index 5f4c7d6d7..4bbae98b7 100644 --- a/lib/system/io.nim +++ b/lib/system/io.nim @@ -7,6 +7,9 @@ # distribution, for details about the copyright. # +## This is a part of ``system.nim``, you should not manually import it. + + include inclrtl import formatfloat |