diff options
author | Ridho Pratama <p.ridho@yahoo.co.id> | 2019-10-04 00:38:37 +0700 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-10-03 19:38:37 +0200 |
commit | 678775601a2a18b681bc71dc986d230e2771845d (patch) | |
tree | c9f2cd4cc24888e4949fed411aff66a8e48c1948 /lib/pure | |
parent | 73c8391fd3f1f8b789348548f33b2d0ee52c6a75 (diff) | |
download | Nim-678775601a2a18b681bc71dc986d230e2771845d.tar.gz |
Fixed sizeOf to sizeof (#12347)
Diffstat (limited to 'lib/pure')
-rw-r--r-- | lib/pure/strutils.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pure/strutils.nim b/lib/pure/strutils.nim index 3e0c07bf3..69cb1efd5 100644 --- a/lib/pure/strutils.nim +++ b/lib/pure/strutils.nim @@ -955,10 +955,10 @@ proc toHex*(x: BiggestInt, len: Positive): string {.noSideEffect, if n == 0 and x < 0: n = -1 proc toHex*[T: SomeInteger](x: T): string = - ## Shortcut for ``toHex(x, T.sizeOf * 2)`` + ## Shortcut for ``toHex(x, T.sizeof * 2)`` runnableExamples: doAssert toHex(1984'i64) == "00000000000007C0" - toHex(BiggestInt(x), T.sizeOf * 2) + toHex(BiggestInt(x), T.sizeof * 2) proc toHex*(s: string): string {.noSideEffect, rtl.} = ## Converts a bytes string to its hexadecimal representation. |