diff options
author | Özgür Kesim <oec@kesim.org> | 2024-11-08 11:24:50 +0100 |
---|---|---|
committer | Özgür Kesim <oec@kesim.org> | 2024-11-08 11:24:50 +0100 |
commit | 2100500f1a0a8534a5d6f900b4e35ad9a09aa339 (patch) | |
tree | bbecf21b3ab957ba1949ffb1a0f8b0fd08de7068 /bidder/bid.go | |
parent | 15283cd1bf926254fad09ae04b1e04e381966c06 (diff) |
moving declarations around
Diffstat (limited to 'bidder/bid.go')
-rw-r--r-- | bidder/bid.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bidder/bid.go b/bidder/bid.go index ba93a64..5f98a0c 100644 --- a/bidder/bid.go +++ b/bidder/bid.go @@ -31,8 +31,8 @@ type bid struct { stage1 []*stage1.Statement } -// NewBid creates a new Bidder for the given price, using the lower bits up to bitlength -func NewBid(price uint64, bitlength uint8) (b *bid, e error) { +// newBid creates a new Bidder for the given price, using the lower bits up to bitlength +func newBid(price uint64, bitlength uint8) (b *bid, e error) { if bitlength > 63 { return nil, fmt.Errorf("bitlength too large, maximum is 63") } else if 0 != (price >> bitlength) { |