@@ -952,7 +952,7 @@ func (l *Lightning) DecodeBolt11(bolt11 string) (*DecodedBolt11, error) {
952
952
953
953
// Decode the {bolt11}, using the provided 'description' if necessary.*
954
954
//
955
- // * This is only necesary if the bolt11 includes a description hash.
955
+ // * This is only necessary if the bolt11 includes a description hash.
956
956
// The provided description must match the included hash.
957
957
func (l * Lightning ) DecodePay (bolt11 , desc string ) (* DecodedBolt11 , error ) {
958
958
if bolt11 == "" {
@@ -1352,8 +1352,8 @@ func (l *Lightning) SendPayLite(route []RouteHop, paymentHash string) (*SendPayR
1352
1352
// payment value. If not specified, it will be the final amount to the
1353
1353
// destination (specified in route). If specified, then the final amount
1354
1354
// at the destination must be from the specified 'msat' to twice that
1355
- // value, inclusive. This is inteded to obscure payments by overpaying
1356
- // slightly at the destination -- the acutal target paymnt is what
1355
+ // value, inclusive. This is intended to obscure payments by overpaying
1356
+ // slightly at the destination -- the actual target paymnt is what
1357
1357
// should be specified as the 'msat' argument.
1358
1358
//
1359
1359
// Once a payment has succeeded, calls to 'SendPay' with the same
@@ -1523,7 +1523,7 @@ func (l *Lightning) Pay(req *PayRequest) (*PaymentSuccess, error) {
1523
1523
return nil , fmt .Errorf ("Must supply a Bolt11 to pay" )
1524
1524
}
1525
1525
if req .RiskFactor < 0 {
1526
- return nil , fmt .Errorf ("Risk factor must be postiive %f" , req .RiskFactor )
1526
+ return nil , fmt .Errorf ("Risk factor must be positive %f" , req .RiskFactor )
1527
1527
}
1528
1528
if req .MaxFeePercent < 0 || req .MaxFeePercent > 100 {
1529
1529
return nil , fmt .Errorf ("MaxFeePercent must be a percentage. %f" , req .MaxFeePercent )
0 commit comments