summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--doc/manual.rst2
-rw-r--r--lib/pure/strutils.nim4
-rw-r--r--tests/misc/tsizeof.nim2
3 files changed, 4 insertions, 4 deletions
diff --git a/doc/manual.rst b/doc/manual.rst
index 5116b3bda..f7e1c939b 100644
--- a/doc/manual.rst
+++ b/doc/manual.rst
@@ -3546,7 +3546,7 @@ Nonoverloadable builtins
 The following builtin procs cannot be overloaded for reasons of implementation
 simplicity (they require specialized semantic checking)::
 
-  declared, defined, definedInScope, compiles, sizeOf,
+  declared, defined, definedInScope, compiles, sizeof,
   is, shallowCopy, getAst, astToStr, spawn, procCall
 
 Thus they act more like keywords than like ordinary identifiers; unlike a
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.
diff --git a/tests/misc/tsizeof.nim b/tests/misc/tsizeof.nim
index a4633021b..d5b8cada7 100644
--- a/tests/misc/tsizeof.nim
+++ b/tests/misc/tsizeof.nim
@@ -570,7 +570,7 @@ type
 
 proc payloadCheck() =
   doAssert offsetOf(Payload, vals) == 4
-  doAssert sizeOf(Payload) == 4
+  doAssert sizeof(Payload) == 4
 
 payloadCheck()