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
commit b6814be653
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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