Skip to content

Commit

Permalink
Add docstring to Integer.bit_reverse method.
Browse files Browse the repository at this point in the history
  • Loading branch information
jemc authored and SeanTAllen committed Jun 8, 2018
1 parent 30e6e6c commit a4abcef
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/builtin/real.pony
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,11 @@ trait val Integer[A: Integer[A] val] is Real[A]
fun op_not(): A => not this

fun bit_reverse(): A
"""
Reverse the order of the bits within the integer.
For example, 0b11101101 (237) would return 0b10110111 (183).
"""

fun bswap(): A

trait val _SignedInteger[A: _SignedInteger[A, B] val,
Expand Down

0 comments on commit a4abcef

Please sign in to comment.