system.nim: Fix documentation ( 7 div 5 == 1 ) (#6057)

This commit is contained in:
nonylene 2017-07-06 15:03:24 +09:00 • committed by Andreas Rumpf
commit 6c708038c1

View file

@ -1068,7 +1068,7 @@ proc `div`*[T: SomeUnsignedInt](x, y: T): T {.magic: "DivU", noSideEffect.}
## ``floor(x/y)``. ## ``floor(x/y)``.
## ##
## .. code-block:: Nim ## .. code-block:: Nim
## (7 div 5) == 2 ## (7 div 5) == 1
proc `mod`*[T: SomeUnsignedInt](x, y: T): T {.magic: "ModU", noSideEffect.} proc `mod`*[T: SomeUnsignedInt](x, y: T): T {.magic: "ModU", noSideEffect.}
## computes the integer modulo operation (remainder). ## computes the integer modulo operation (remainder).