mirror of
https://github.com/nim-lang/Nim.git
synced 2026-05-24 21:59:52 +00:00
Update outdated string representation in example (#25802)
See [here](https://nim-lang.github.io/Nim/tut1.html#internal-type-representation).
This commit is contained in:
committed by
GitHub
parent
4c8052a45b
commit
f0c60b06e5
@@ -1144,7 +1144,7 @@ there is a difference between the `$` and `repr` outputs:
|
||||
echo myCharacter, ":", repr(myCharacter)
|
||||
# --> n:'n'
|
||||
echo myString, ":", repr(myString)
|
||||
# --> nim:0x10fa8c050"nim"
|
||||
# --> nim:"nim"
|
||||
echo myInteger, ":", repr(myInteger)
|
||||
# --> 42:42
|
||||
echo myFloat, ":", repr(myFloat)
|
||||
|
||||
Reference in New Issue
Block a user