This commit is contained in:
Andreas Rumpf 2017-11-18 15:19:06 +01:00
commit 0d11e09729
2 changed files with 6 additions and 6 deletions

View file

@ -905,7 +905,7 @@ proc `div` *(x, y: int8): int8 {.magic: "DivI", noSideEffect.}
proc `div` *(x, y: int16): int16 {.magic: "DivI", noSideEffect.}
proc `div` *(x, y: int32): int32 {.magic: "DivI", noSideEffect.}
## computes the integer division. This is roughly the same as
## ``floor(x/y)``.
## ``trunc(x/y)``.
##
## .. code-block:: Nim
## 1 div 2 == 0
@ -1107,7 +1107,7 @@ proc `*`*[T: SomeUnsignedInt](x, y: T): T {.magic: "MulU", noSideEffect.}
proc `div`*[T: SomeUnsignedInt](x, y: T): T {.magic: "DivU", noSideEffect.}
## computes the integer division. This is roughly the same as
## ``floor(x/y)``.
## ``trunc(x/y)``.
##
## .. code-block:: Nim
## (7 div 5) == 1