Skip to content

Commit d3c6928

Browse files
committed
chore: fix some typos
Signed-off-by: beforetech <[email protected]>
1 parent f3064a1 commit d3c6928

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

glightning/lightning.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -952,7 +952,7 @@ func (l *Lightning) DecodeBolt11(bolt11 string) (*DecodedBolt11, error) {
952952

953953
// Decode the {bolt11}, using the provided 'description' if necessary.*
954954
//
955-
// * This is only necesary if the bolt11 includes a description hash.
955+
// * This is only necessary if the bolt11 includes a description hash.
956956
// The provided description must match the included hash.
957957
func (l *Lightning) DecodePay(bolt11, desc string) (*DecodedBolt11, error) {
958958
if bolt11 == "" {
@@ -1352,8 +1352,8 @@ func (l *Lightning) SendPayLite(route []RouteHop, paymentHash string) (*SendPayR
13521352
// payment value. If not specified, it will be the final amount to the
13531353
// destination (specified in route). If specified, then the final amount
13541354
// 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
13571357
// should be specified as the 'msat' argument.
13581358
//
13591359
// Once a payment has succeeded, calls to 'SendPay' with the same
@@ -1523,7 +1523,7 @@ func (l *Lightning) Pay(req *PayRequest) (*PaymentSuccess, error) {
15231523
return nil, fmt.Errorf("Must supply a Bolt11 to pay")
15241524
}
15251525
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)
15271527
}
15281528
if req.MaxFeePercent < 0 || req.MaxFeePercent > 100 {
15291529
return nil, fmt.Errorf("MaxFeePercent must be a percentage. %f", req.MaxFeePercent)

0 commit comments

Comments
 (0)