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
commit 2d6c200284
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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