doc: fix comment for repr*(x: char): string (#13873)

replace `$` with `repr`.
This commit is contained in:
Hiroki Noda
2020-04-05 23:44:55 +09:00
committed by GitHub
parent 29734b73ff
commit b6814be653

View File

@@ -27,7 +27,7 @@ proc repr*(x: char): string {.magic: "CharToStr", noSideEffect.}
## converted to a string.
##
## .. code-block:: Nim
## assert $'c' == "c"
## assert repr('c') == "c"
proc repr*(x: cstring): string {.magic: "CStrToStr", noSideEffect.}
## repr for a CString argument. Returns `x`