Update unicode.nim: cmpRunesIgnoreCase: fix doc format (#23560)

Its doc used to render wrongly where `>` is considered as quote block:


![image](https://github.com/nim-lang/Nim/assets/97860435/4aeda257-3231-42a5-9dd9-0052950a160e)
This commit is contained in:
lit
2024-05-02 16:07:19 +08:00
committed by GitHub
parent 185e06c923
commit d772186b2d

View File

@@ -836,9 +836,9 @@ proc toRunes*(s: openArray[char]): seq[Rune] =
proc cmpRunesIgnoreCase*(a, b: openArray[char]): int {.rtl, extern: "nuc$1".} =
## Compares two UTF-8 strings and ignores the case. 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
var i = 0
var j = 0
var ar, br: Rune
@@ -1375,9 +1375,9 @@ proc toRunes*(s: string): seq[Rune] {.inline.} =
proc cmpRunesIgnoreCase*(a, b: string): int {.inline.} =
## Compares two UTF-8 strings and ignores the case. 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
cmpRunesIgnoreCase(a.toOa(), b.toOa())
proc reversed*(s: string): string {.inline.} =