fixes wrong doc comments

This commit is contained in:
Araq 2015-10-19 16:11:39 +02:00
commit d221241ac5

View file

@ -863,8 +863,8 @@ proc `mod` *(x, y: int32): int32 {.magic: "ModI", noSideEffect.}
## This is the same as ## This is the same as
## ``x - (x div y) * y``. ## ``x - (x div y) * y``.
## ##
# .. code-block:: Nim ## .. code-block:: Nim
## (7 mod 5) == 2 ## (7 mod 5) == 2
when defined(nimnomagic64): when defined(nimnomagic64):
proc `mod` *(x, y: int64): int64 {.magic: "ModI", noSideEffect.} proc `mod` *(x, y: int64): int64 {.magic: "ModI", noSideEffect.}
@ -1032,8 +1032,8 @@ proc `mod`*[T: SomeUnsignedInt](x, y: T): T {.magic: "ModU", noSideEffect.}
## This is the same as ## This is the same as
## ``x - (x div y) * y``. ## ``x - (x div y) * y``.
## ##
# .. code-block:: Nim ## .. code-block:: Nim
## (7 mod 5) == 2 ## (7 mod 5) == 2
proc `<=`*[T: SomeUnsignedInt](x, y: T): bool {.magic: "LeU", noSideEffect.} proc `<=`*[T: SomeUnsignedInt](x, y: T): bool {.magic: "LeU", noSideEffect.}
## Returns true iff ``x <= y``. ## Returns true iff ``x <= y``.