Skip to content

Commit

Permalink
Merge pull request #8628 from hlaaftana/patch-1
Browse files Browse the repository at this point in the history
Small documentation typo in math
  • Loading branch information
dom96 authored Aug 14, 2018
2 parents ed9fd2b + ed4a267 commit bc957ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/pure/math.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit bc957ac

Please sign in to comment.