diff options
author | nonylene <cookie.speaker@gmail.com> | 2017-07-06 15:03:24 +0900 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-07-06 08:03:24 +0200 |
commit | 6c708038c1d4667fb5d4f84ae60873c3077f53aa (patch) | |
tree | b232ee1dcf6a4c6adcf12aed866a68f8a9feee11 | |
parent | 9e12db445959ce7c791ec7480ea08e9e02f96bba (diff) | |
download | Nim-6c708038c1d4667fb5d4f84ae60873c3077f53aa.tar.gz |
system.nim: Fix documentation ( 7 div 5 == 1 ) (#6057)
-rw-r--r-- | lib/system.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/system.nim b/lib/system.nim index 0e94bcc23..df0703ec8 100644 --- a/lib/system.nim +++ b/lib/system.nim @@ -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). |