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
parent 9e12db4459
commit 6c708038c1

View File

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