fix repr(char) example assert (#14437)

This commit is contained in:
hlaaftana
2020-05-24 07:26:49 +03:00
committed by GitHub
parent b012205b2e
commit f70d01a7d5

View File

@@ -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.} =