doc: fix typos

As found by lint-spelling.py using codespell 2.2.6.
This commit is contained in:
Sjors Provoost
2023-11-07 10:21:51 +09:00
parent 0387ca0774
commit 43de4d3630
22 changed files with 25 additions and 24 deletions

View File

@@ -1089,7 +1089,7 @@ UniValue RPCResult::MatchesType(const UniValue& result) const
if (UniValue::VARR == result.getType()) {
UniValue errors(UniValue::VOBJ);
for (size_t i{0}; i < result.get_array().size(); ++i) {
// If there are more results than documented, re-use the last doc_inner.
// If there are more results than documented, reuse the last doc_inner.
const RPCResult& doc_inner{m_inner.at(std::min(m_inner.size() - 1, i))};
UniValue match{doc_inner.MatchesType(result.get_array()[i])};
if (!match.isTrue()) errors.pushKV(strprintf("%d", i), match);