Small documentation typo in math
This commit is contained in:
parent
aa1cdebdc2
commit
ed4a267399
1 changed files with 2 additions and 2 deletions
|
|
@ -529,8 +529,8 @@ proc sgn*[T: SomeNumber](x: T): int {.inline.} =
|
||||||
{.pop.}
|
{.pop.}
|
||||||
|
|
||||||
proc `^`*[T](x: T, y: Natural): T =
|
proc `^`*[T](x: T, y: Natural): T =
|
||||||
## Computes ``x`` to the power ``y`. ``x`` must be non-negative, use
|
## Computes ``x`` to the power ``y``. ``x`` must be non-negative, use
|
||||||
## `pow <#pow,float,float>` for negative exponents.
|
## `pow <#pow,float,float>`_ for negative exponents.
|
||||||
when compiles(y >= T(0)):
|
when compiles(y >= T(0)):
|
||||||
assert y >= T(0)
|
assert y >= T(0)
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue