diff options
author | Araq <rumpf_a@web.de> | 2019-07-10 00:26:44 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2019-07-10 00:29:58 +0200 |
commit | c6c9e30379dbf1016f336495b073b233fe1a2563 (patch) | |
tree | 033e31cd554426e6965c672ebaae4e86fdcca460 /lib | |
parent | 7a39eb13a56b6df3f07a59113f4137612e49287e (diff) | |
download | Nim-c6c9e30379dbf1016f336495b073b233fe1a2563.tar.gz |
minor system.nim style changes
Diffstat (limited to 'lib')
-rw-r--r-- | lib/system.nim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/system.nim b/lib/system.nim index 72d1a3aee..c40c51768 100644 --- a/lib/system.nim +++ b/lib/system.nim @@ -223,7 +223,7 @@ when defined(nimHasTypeof): typeOfProc, ## Prefer the interpretation that means `x` is a proc call. typeOfIter ## Prefer the interpretation that means `x` is an iterator call. - proc typeof*(x: untyped; mode = typeOfIter): typeDesc {. + proc typeof*(x: untyped; mode = typeOfIter): typedesc {. magic: "TypeOf", noSideEffect, compileTime.} = ## Builtin `typeof` operation for accessing the type of an expression. ## Since version 0.20.0. @@ -320,7 +320,7 @@ proc high*[T: Ordinal|enum|range](x: T): T {.magic: "High", noSideEffect.} ## .. code-block:: Nim ## high(2) # => 9223372036854775807 -proc high*[T: Ordinal|enum|range](x: typeDesc[T]): T {.magic: "High", noSideEffect.} +proc high*[T: Ordinal|enum|range](x: typedesc[T]): T {.magic: "High", noSideEffect.} ## Returns the highest possible value of an ordinal or enum type. ## ## ``high(int)`` is Nim's way of writing `INT_MAX`:idx: or `MAX_INT`:idx:. @@ -355,7 +355,7 @@ proc high*[I, T](x: array[I, T]): I {.magic: "High", noSideEffect.} ## for i in low(arr)..high(arr): ## echo arr[i] -proc high*[I, T](x: typeDesc[array[I, T]]): I {.magic: "High", noSideEffect.} +proc high*[I, T](x: typedesc[array[I, T]]): I {.magic: "High", noSideEffect.} ## Returns the highest possible index of an array type. ## ## See also: |