Skip to content

Commit

Permalink
Update unicode.nim: cmpRunesIgnoreCase: fix doc format (#23560)
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
litlighilit authored May 2, 2024
1 parent 185e06c commit d772186
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/pure/unicode.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.} =
Expand Down

0 comments on commit d772186

Please sign in to comment.