fix repr(char) example assert (#14437)

This commit is contained in:
hlaaftana 2020-05-24 07:26:49 +03:00 • committed by GitHub
commit f70d01a7d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,7 +32,7 @@ proc repr*(x: char): string {.noSideEffect.} =
## converted to a string. ## converted to a string.
## ##
## .. code-block:: Nim ## .. code-block:: Nim
## assert repr('c') == "c" ## assert repr('c') == "'c'"
'\'' & $x & '\'' '\'' & $x & '\''
proc repr*(x: cstring): string {.noSideEffect.} = proc repr*(x: cstring): string {.noSideEffect.} =