summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorNeelesh Chandola <neelesh.chandola@outlook.com>2018-10-28 18:57:17 +0530
committerAndreas Rumpf <rumpf_a@web.de>2018-10-28 14:27:17 +0100
commit95cc1abdc71ab0b01b5fb457a715f74e2ccd9608 (patch)
tree7d6c754f6729384010a79ebbfc3a365107f5bc55 /lib
parentdfb8730f51a022ff02bdd973e6c5946cfdcdc3c6 (diff)
downloadNim-95cc1abdc71ab0b01b5fb457a715f74e2ccd9608.tar.gz
Fixes #9525 (#9526)
Diffstat (limited to 'lib')
-rw-r--r--lib/pure/strutils.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/strutils.nim b/lib/pure/strutils.nim
index 82c6dc8b9..e266275cf 100644
--- a/lib/pure/strutils.nim
+++ b/lib/pure/strutils.nim
@@ -909,7 +909,7 @@ proc toHex*(x: BiggestInt, len: Positive): string {.noSideEffect,
 proc toHex*[T: SomeInteger](x: T): string =
   ## Shortcut for ``toHex(x, T.sizeOf * 2)``
   runnableExamples:
-    doAssert toHex(1984) == "00000000000007C0"
+    doAssert toHex(1984'i64) == "00000000000007C0"
   toHex(BiggestInt(x), T.sizeOf * 2)
 
 proc toHex*(s: string): string {.noSideEffect, rtl.} =