mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-17 21:12:42 +00:00
Small documentation typo in math
This commit is contained in:
@@ -529,8 +529,8 @@ proc sgn*[T: SomeNumber](x: T): int {.inline.} =
|
||||
{.pop.}
|
||||
|
||||
proc `^`*[T](x: T, y: Natural): T =
|
||||
## Computes ``x`` to the power ``y`. ``x`` must be non-negative, use
|
||||
## `pow <#pow,float,float>` for negative exponents.
|
||||
## Computes ``x`` to the power ``y``. ``x`` must be non-negative, use
|
||||
## `pow <#pow,float,float>`_ for negative exponents.
|
||||
when compiles(y >= T(0)):
|
||||
assert y >= T(0)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user