Skip to content

Commit

Permalink
fix repr(char) example assert (nim-lang#14437)
Browse files Browse the repository at this point in the history
  • Loading branch information
metagn authored and EchoPouet committed Jun 13, 2020
1 parent 2aac023 commit 5e411f4
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 @@ -32,7 +32,7 @@ proc repr*(x: char): string {.noSideEffect.} =
## converted to a string.
##
## .. code-block:: Nim
## assert repr('c') == "c"
## assert repr('c') == "'c'"
'\'' & $x & '\''

proc repr*(x: cstring): string {.noSideEffect.} =
Expand Down

0 comments on commit 5e411f4

Please sign in to comment.