fixes documentation regression (#20925)

follow up https://github.com/nim-lang/Nim/pull/17004
This commit is contained in:
ringabout
2022-11-26 23:35:30 +08:00
committed by GitHub
parent 37fe9c0f38
commit 2d6c200284

View File

@@ -75,7 +75,7 @@ func cmpIgnoreStyle*(a, b: cstring): int {.rtl, extern: "csuCmpIgnoreStyle".} =
## for that. Returns:
## * 0 if `a == b`
## * < 0 if `a < b`
## * > 0 if `a > b`
## * \> 0 if `a > b`
runnableExamples:
assert cmpIgnoreStyle(cstring"hello", cstring"H_e_L_Lo") == 0
@@ -101,7 +101,7 @@ func cmpIgnoreCase*(a, b: cstring): int {.rtl, extern: "csuCmpIgnoreCase".} =
## 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`
runnableExamples:
assert cmpIgnoreCase(cstring"hello", cstring"HeLLo") == 0
assert cmpIgnoreCase(cstring"echo", cstring"hello") < 0