mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-04 20:17:42 +00:00
doc: fix comment for repr*(x: char): string (#13873)
replace `$` with `repr`.
This commit is contained in:
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user