Skip to content

Commit

Permalink
indexer: doc bigint.Clamp assumption
Browse files Browse the repository at this point in the history
  • Loading branch information
keroro520 committed Mar 7, 2024
1 parent 7f177fb commit 302cc94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion indexer/bigint/bigint.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ var (
)

// Clamp returns a new big.Int for `end` to which `end - start` <= size.
// @note (start, end) is an inclusive range
// @note (start, end) is an inclusive range. This function assumes that `start` is not greater than `end`.
func Clamp(start, end *big.Int, size uint64) *big.Int {
temp := new(big.Int)
count := temp.Sub(end, start).Uint64() + 1
Expand Down

0 comments on commit 302cc94

Please sign in to comment.