Fix tiny typo
I think the intent is: https://en.wiktionary.org/wiki/producible
This commit is contained in:
parent
9ffb1ecd80
commit
3c3f9360f4
2 changed files with 5 additions and 5 deletions
|
@ -67,7 +67,7 @@ func round(f float64) Amount {
|
||||||
// NewAmount creates an Amount from a floating point value representing
|
// NewAmount creates an Amount from a floating point value representing
|
||||||
// some value in bitcoin. NewAmount errors if f is NaN or +-Infinity, but
|
// some value in bitcoin. NewAmount errors if f is NaN or +-Infinity, but
|
||||||
// does not check that the amount is within the total amount of bitcoin
|
// does not check that the amount is within the total amount of bitcoin
|
||||||
// producable as f may not refer to an amount at a single moment in time.
|
// producible as f may not refer to an amount at a single moment in time.
|
||||||
func NewAmount(f float64) (Amount, error) {
|
func NewAmount(f float64) (Amount, error) {
|
||||||
// The amount is only considered invalid if it cannot be represented
|
// The amount is only considered invalid if it cannot be represented
|
||||||
// as an integer type. This may happen if f is NaN or +-Infinity.
|
// as an integer type. This may happen if f is NaN or +-Infinity.
|
||||||
|
|
|
@ -26,25 +26,25 @@ func TestAmountCreation(t *testing.T) {
|
||||||
expected: 0,
|
expected: 0,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "max producable",
|
name: "max producible",
|
||||||
amount: 21e6,
|
amount: 21e6,
|
||||||
valid: true,
|
valid: true,
|
||||||
expected: MaxSatoshi,
|
expected: MaxSatoshi,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "min producable",
|
name: "min producible",
|
||||||
amount: -21e6,
|
amount: -21e6,
|
||||||
valid: true,
|
valid: true,
|
||||||
expected: -MaxSatoshi,
|
expected: -MaxSatoshi,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "exceeds max producable",
|
name: "exceeds max producible",
|
||||||
amount: 21e6 + 1e-8,
|
amount: 21e6 + 1e-8,
|
||||||
valid: true,
|
valid: true,
|
||||||
expected: MaxSatoshi + 1,
|
expected: MaxSatoshi + 1,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "exceeds min producable",
|
name: "exceeds min producible",
|
||||||
amount: -21e6 - 1e-8,
|
amount: -21e6 - 1e-8,
|
||||||
valid: true,
|
valid: true,
|
||||||
expected: -MaxSatoshi - 1,
|
expected: -MaxSatoshi - 1,
|
||||||
|
|
Loading…
Reference in a new issue