Fixed sizeOf to sizeof (#12347)

This commit is contained in:
Ridho Pratama 2019-10-04 00:38:37 +07:00 • committed by Andreas Rumpf
commit 678775601a
3 changed files with 4 additions and 4 deletions

View file

@ -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.