From 678775601a2a18b681bc71dc986d230e2771845d Mon Sep 17 00:00:00 2001
From: Ridho Pratama
Date: Fri, 4 Oct 2019 00:38:37 +0700
Subject: Fixed sizeOf to sizeof (#12347)
---
lib/pure/strutils.nim | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
(limited to 'lib/pure')
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.
--
cgit 1.4.1-2-gfad0