Skip to content

Commit 99a92ef

Browse files
committed
descriptors doc: Correct Markdown format + wording
1 parent 2db0027 commit 99a92ef

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

doc/descriptors.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -288,11 +288,11 @@ For example, a descriptor of the form:
288288

289289
multi(2,xpub.../<0;1;2>/0/*,xpub.../<2;3;4>/*)
290290

291-
will expand to the two descriptors
291+
will expand to the 3 descriptors
292292

293-
multi(2,xpub.../0/0/*,xpub.../2/*)
294-
multi(2,xpub.../1/0/*,xpub.../3/*)
295-
multi(2,xpub.../2/0/*,xpub.../4*)
293+
multi(2,xpub.../0/0/*,xpub.../2/*)
294+
multi(2,xpub.../1/0/*,xpub.../3/*)
295+
multi(2,xpub.../2/0/*,xpub.../4/*)
296296

297297
When this tuple contains only two elements, wallet implementations can use the
298298
first descriptor for receiving addresses and the second descriptor for change addresses.

src/script/descriptor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1447,7 +1447,7 @@ std::optional<uint32_t> ParseKeyPathNum(std::span<const char> elem, bool& apostr
14471447
for (size_t i = 1; i < split.size(); ++i) {
14481448
const std::span<const char>& elem = split[i];
14491449

1450-
// Check if element contain multipath specifier
1450+
// Check if element contains multipath specifier
14511451
if (!elem.empty() && elem.front() == '<' && elem.back() == '>') {
14521452
if (!allow_multipath) {
14531453
error = strprintf("Key path value '%s' specifies multipath in a section where multipath is not allowed", std::string(elem.begin(), elem.end()));

0 commit comments

Comments
 (0)