Skip to content

Commit

Permalink
doc: fix comment for repr*(x: char): string (#13873)
Browse files Browse the repository at this point in the history
replace `$` with `repr`.
  • Loading branch information
kubo39 authored Apr 5, 2020
1 parent 29734b7 commit b6814be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/system/repr_v2.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down

0 comments on commit b6814be

Please sign in to comment.