From aefc88752175926f0b1ef5ed53cf7256fdced8a9 Mon Sep 17 00:00:00 2001 From: practicalswift Date: Thu, 18 Jan 2018 17:50:35 +0100 Subject: [PATCH] Fix typos --- doc/lightning-decodepay.7 | 2 +- doc/lightning-decodepay.7.txt | 2 +- doc/lightning-listpayments.7.txt | 2 +- tests/test_lightningd.py | 2 +- wallet/invoices.h | 2 +- wallet/wallet.h | 6 +++--- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/doc/lightning-decodepay.7 b/doc/lightning-decodepay.7 index 7bf86d97b..2d90f1ad5 100644 --- a/doc/lightning-decodepay.7 +++ b/doc/lightning-decodepay.7 @@ -34,7 +34,7 @@ lightning-decodepay \- Protocol for decoding a bolt11 string (low\-level) \fBdecodepay\fR \fIbolt11\fR [\fIdescription\fR] .SH "DESCRIPTION" .sp -The \fBdecodepay\fR RPC command checks and parses a \fIbolt11\fR string as specfied by the BOLT 11 specification\&. +The \fBdecodepay\fR RPC command checks and parses a \fIbolt11\fR string as specified by the BOLT 11 specification\&. .SH "RETURN VALUE" .sp On success, an object is returned with the following fields, as specified by BOLT11: diff --git a/doc/lightning-decodepay.7.txt b/doc/lightning-decodepay.7.txt index d990b9a9c..bb156f0f6 100644 --- a/doc/lightning-decodepay.7.txt +++ b/doc/lightning-decodepay.7.txt @@ -13,7 +13,7 @@ SYNOPSIS DESCRIPTION ----------- -The *decodepay* RPC command checks and parses a 'bolt11' string as specfied +The *decodepay* RPC command checks and parses a 'bolt11' string as specified by the BOLT 11 specification. RETURN VALUE diff --git a/doc/lightning-listpayments.7.txt b/doc/lightning-listpayments.7.txt index 26b0145f4..9afccd8db 100644 --- a/doc/lightning-listpayments.7.txt +++ b/doc/lightning-listpayments.7.txt @@ -28,7 +28,7 @@ Christian Decker is mainly responsible. SEE ALSO -------- -lightning-pay(7), ligthning-sendpay(7), lightning-listinvoice(7). +lightning-pay(7), lightning-sendpay(7), lightning-listinvoice(7). RESOURCES --------- diff --git a/tests/test_lightningd.py b/tests/test_lightningd.py index 0b9340db8..3d8639a14 100644 --- a/tests/test_lightningd.py +++ b/tests/test_lightningd.py @@ -301,7 +301,7 @@ class LightningDTests(BaseLightningDTests): lsrc.rpc.sendpay(to_json([routestep]), rhash, async=False) # This waits until gossipd sees channel_update in both directions - # (or for local channels, at least a local announcment) + # (or for local channels, at least a local announcement) def wait_for_routes(self, l1, channel_ids): bitcoind.generate_block(5) # Could happen in any order... diff --git a/wallet/invoices.h b/wallet/invoices.h index 196b79507..caa54104e 100644 --- a/wallet/invoices.h +++ b/wallet/invoices.h @@ -67,7 +67,7 @@ const struct invoice *invoices_find_by_label(struct invoices *invoices, * @invoices - the invoice handler. * @rhash - the payment_hash to search for. * - * Rerturns NULL if no invoice with that payment hash exists. + * Returns NULL if no invoice with that payment hash exists. */ const struct invoice *invoices_find_unpaid(struct invoices *invoices, const struct sha256 *rhash); diff --git a/wallet/wallet.h b/wallet/wallet.h index 17923e515..6221a9703 100644 --- a/wallet/wallet.h +++ b/wallet/wallet.h @@ -385,7 +385,7 @@ struct invoice { * * All other wallet_invoice_* functions cannot be called * until this function is called. - * As a databse operation it must be called within + * As a database operation it must be called within * db_begin_transaction .. db_commit_transaction * (all other invoice functions also have this requirement). * Returns true if loaded successfully. @@ -429,7 +429,7 @@ const struct invoice *wallet_invoice_find_by_label(struct wallet *wallet, * @wallet - the wallet to search. * @rhash - the payment_hash to search for. * - * Rerturns NULL if no invoice with that payment hash exists. + * Returns NULL if no invoice with that payment hash exists. */ const struct invoice *wallet_invoice_find_unpaid(struct wallet *wallet, const struct sha256 *rhash); @@ -448,7 +448,7 @@ bool wallet_invoice_delete(struct wallet *wallet, /** * wallet_invoice_iterate - Iterate over all existing invoices * - * @wallet - the wallet whose invoices are to beiterated over. + * @wallet - the wallet whose invoices are to be iterated over. * @invoice - the previous invoice you iterated over. * * Return NULL at end-of-sequence. Usage: