Skip to content

Commit

Permalink
doc(format): ospaths2,strutils: followup #23560 (#23629)
Browse files Browse the repository at this point in the history
followup #23560
  • Loading branch information
litlighilit committed May 20, 2024
1 parent b3b26b2 commit b838d3e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions lib/pure/strutils.nim
Original file line number Diff line number Diff line change
Expand Up @@ -334,9 +334,9 @@ func normalize*(s: string): string {.rtl, extern: "nsuNormalize".} =
func cmpIgnoreCase*(a, b: string): int {.rtl, extern: "nsuCmpIgnoreCase".} =
## Compares two strings in a case insensitive manner. Returns:
##
## | 0 if a == b
## | < 0 if a < b
## | > 0 if a > b
## | `0` if a == b
## | `< 0` if a < b
## | `> 0` if a > b
runnableExamples:
doAssert cmpIgnoreCase("FooBar", "foobar") == 0
doAssert cmpIgnoreCase("bar", "Foo") < 0
Expand All @@ -354,9 +354,9 @@ func cmpIgnoreStyle*(a, b: string): int {.rtl, extern: "nsuCmpIgnoreStyle".} =
##
## Returns:
##
## | 0 if a == b
## | < 0 if a < b
## | > 0 if a > b
## | `0` if a == b
## | `< 0` if a < b
## | `> 0` if a > b
runnableExamples:
doAssert cmpIgnoreStyle("foo_bar", "FooBar") == 0
doAssert cmpIgnoreStyle("foo_bar_5", "FooBar4") > 0
Expand Down
6 changes: 3 additions & 3 deletions lib/std/private/ospaths2.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b838d3e

Please sign in to comment.