doc: fix comment for repr*(x: char): string (#13873)
replace `$` with `repr`.
This commit is contained in:
parent
29734b73ff
commit
b6814be653
1 changed files with 1 additions and 1 deletions
|
|
@ -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`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue