doc(format): ospaths2,strutils: followup #23560 (#23629)

followup #23560
This commit is contained in:
lit
2024-05-20 19:18:28 +08:00
committed by GitHub
parent b3b26b2e56
commit b838d3ece1
2 changed files with 9 additions and 9 deletions

View File

@@ -763,9 +763,9 @@ proc cmpPaths*(pathA, pathB: string): int {.
## On a case-sensitive filesystem this is done
## case-sensitively otherwise case-insensitively. Returns:
##
## | 0 if pathA == pathB
## | < 0 if pathA < pathB
## | > 0 if pathA > pathB
## | `0` if pathA == pathB
## | `< 0` if pathA < pathB
## | `> 0` if pathA > pathB
runnableExamples:
when defined(macosx):
assert cmpPaths("foo", "Foo") == 0