fix repr(char) example assert (#14437)
This commit is contained in:
parent
b012205b2e
commit
f70d01a7d5
1 changed files with 1 additions and 1 deletions
|
|
@ -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.} =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue