doc/lightning-datastore.7.md: Fix typos.

Changelog-None
This commit is contained in:
ZmnSCPxj jxPCSnmZ 2021-12-02 16:48:25 +08:00 committed by ZmnSCPxj, ZmnSCPxj jxPCSmnZ
parent 3433ff5e15
commit 80661f920b

View File

@ -13,13 +13,13 @@ The **datastore** RPC command allows plugins to store data in the
c-lightning database, for later retrieval. c-lightning database, for later retrieval.
*key* is an array of values (though a single value is treated as a *key* is an array of values (though a single value is treated as a
one-element array), to form a heirarchy. Using the first element of one-element array), to form a hierarchy. Using the first element of
the key as the plugin name (e.g. `[ "summary" ]`) is recommended. the key as the plugin name (e.g. `[ "summary" ]`) is recommended.
A key can either have children or a value, never both: parents are A key can either have children or a value, never both: parents are
created and removed automatically. created and removed automatically.
*mode* is one of "must-create" (default, fails it it already exists), *mode* is one of "must-create" (default, fails if it already exists),
"must-replace" (fails it it doesn't already exist), "must-replace" (fails if it doesn't already exist),
"create-or-replace" (never fails), "must-append" (must already exist, "create-or-replace" (never fails), "must-append" (must already exist,
append this to what's already there) or "create-or-append" (append if append this to what's already there) or "create-or-append" (append if
anything is there, otherwise create). anything is there, otherwise create).