mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 15:09:59 +01:00
Merge bitcoin/bitcoin#28605: Fix typos
43de4d3630doc: fix typos (Sjors Provoost) Pull request description: This PR fixes typos found by lint-spelling.py using codespell 2.2.6. Our CI linter job uses codespell 2.2.5 and found fewer typos that I did locally. In any case it's happy now. ACKs for top commit: pablomartin4btc: re ACK43de4d3630Tree-SHA512: c032fe86cb49c924a468385653b31f309a9db68c478d70335bba3e65a1ff3826abe80284fe00a090ab5a509e1edbf17e476f6922fb15d055e50f1103dad2ccb0
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user