system.nim: workaround for the fixed documentation generator
This commit is contained in:
parent
eb03684c57
commit
1dd1d66f16
1 changed files with 1 additions and 1 deletions
|
|
@ -2994,7 +2994,7 @@ when defined(nimnomagic64):
|
||||||
## returns the absolute value of `x`. If `x` is ``low(x)`` (that
|
## returns the absolute value of `x`. If `x` is ``low(x)`` (that
|
||||||
## is -MININT for its type), an overflow exception is thrown (if overflow
|
## is -MININT for its type), an overflow exception is thrown (if overflow
|
||||||
## checking is turned on).
|
## checking is turned on).
|
||||||
if x < 0: -x else: x
|
result = if x < 0: -x else: x
|
||||||
else:
|
else:
|
||||||
proc abs*(x: int64): int64 {.magic: "AbsI64", noSideEffect.} =
|
proc abs*(x: int64): int64 {.magic: "AbsI64", noSideEffect.} =
|
||||||
## returns the absolute value of `x`. If `x` is ``low(x)`` (that
|
## returns the absolute value of `x`. If `x` is ``low(x)`` (that
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue