From b6814be65349d22fd12944c7c3d19fd8eb44683d Mon Sep 17 00:00:00 2001 From: Hiroki Noda Date: Sun, 5 Apr 2020 23:44:55 +0900 Subject: [PATCH] doc: fix comment for repr*(x: char): string (#13873) replace `$` with `repr`. --- lib/system/repr_v2.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/system/repr_v2.nim b/lib/system/repr_v2.nim index 6bf45b4cec..3e35b32c35 100644 --- a/lib/system/repr_v2.nim +++ b/lib/system/repr_v2.nim @@ -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`