Skip to content

Commit

Permalink
std/math/big: refactor documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
mertcandav committed Jan 17, 2025
1 parent 13392d8 commit fbb7794
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions std/math/big/int.jule
Original file line number Diff line number Diff line change
Expand Up @@ -787,10 +787,10 @@ impl Int {
ret len(self.abs) > 0 && self.abs[0]&1 == 0
}

// Sign returns, x = self:
// - -1 if x < 0;
// - 0 if x == 0;
// - +1 if x > 0.
// Returns, x = self:
// Sign() = -1 if x < 0
// Sign() = 0 if x == 0
// Sign() = +1 if x > 0
fn Sign(self): int {
// This function is may used in cryptographic operations. It must not leak
// anything but the Int's sign and bit size through side-channels. Any
Expand Down
2 changes: 1 addition & 1 deletion std/math/big/wordconv.jule
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const digits = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
// Note: MaxBase = len(digits), but it must remain an untyped rune constant
// for API compatibility.

// MaxBase is the largest number base accepted for string conversions.
// The largest number base accepted for string conversions.
const MaxBase = 10 + ('z' - 'a' + 1) + ('Z' - 'A' + 1)
const maxBaseSmall = 10 + ('z' - 'a' + 1)

Expand Down

0 comments on commit fbb7794

Please sign in to comment.