summary refs log tree commit diff stats
path: root/lib/pure
diff options
context:
space:
mode:
authorlit <litlighilit@foxmail.com>2024-05-02 16:07:19 +0800
committerGitHub <noreply@github.com>2024-05-02 16:07:19 +0800
commitd772186b2dbacdbeceaf2cd3ed3bd583f912e6e3 (patch)
tree4541ac931a38f1dec8e573c5106f0cde9758f2c2 /lib/pure
parent185e06c92362083c06c76f87e325889b1c9dc659 (diff)
downloadNim-d772186b2dbacdbeceaf2cd3ed3bd583f912e6e3.tar.gz
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)
Diffstat (limited to 'lib/pure')
-rw-r--r--lib/pure/unicode.nim12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/pure/unicode.nim b/lib/pure/unicode.nim
index f329aa1e3..8cbe117bb 100644
--- a/lib/pure/unicode.nim
+++ b/lib/pure/unicode.nim
@@ -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.} =