mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-04 12:07:51 +00:00
fix repr(char) example assert (#14437)
This commit is contained in:
@@ -32,7 +32,7 @@ proc repr*(x: char): string {.noSideEffect.} =
|
||||
## converted to a string.
|
||||
##
|
||||
## .. code-block:: Nim
|
||||
## assert repr('c') == "c"
|
||||
## assert repr('c') == "'c'"
|
||||
'\'' & $x & '\''
|
||||
|
||||
proc repr*(x: cstring): string {.noSideEffect.} =
|
||||
|
||||
Reference in New Issue
Block a user