diff options
author | MacroFake <falke.marco@gmail.com> | 2022-05-31 15:19:53 +0200 |
---|---|---|
committer | MacroFake <falke.marco@gmail.com> | 2022-05-31 15:19:59 +0200 |
commit | d4d9daff7ab60a9f0cae0a34f86be0bb497f62f4 (patch) | |
tree | cac03059d526a1653d2a9227c271cb5e310d0822 /src | |
parent | 1f932de673921748c745aa24ca8f9f1b4d74345d (diff) | |
parent | f565b2836d5efeb6f7c16d0fac813b06fa4d41e4 (diff) | |
download | bitcoin-d4d9daff7ab60a9f0cae0a34f86be0bb497f62f4.tar.xz |
Merge bitcoin/bitcoin#25200: doc: Fix spelling errors identified by codespell in comments
f565b2836d5efeb6f7c16d0fac813b06fa4d41e4 Fixup option name in bench message (Ben Woosley)
bf209ac7a732394c3a54d6d1e3fb43f180ac1bb8 doc: Fix spelling errors identified by codespell in coments (Ben Woosley)
Pull request description:
From the output [here](https://cirrus-ci.com/task/5275612980969472?logs=lint#L849):
```
src/qt/test/addressbooktests.cpp:185: wilcard ==> wildcard
src/qt/test/addressbooktests.cpp:191: wilcard ==> wildcard
src/test/miniscript_tests.cpp:227: nd ==> and, 2nd
src/test/versionbits_tests.cpp:260: everytime ==> every time
src/util/time.h:89: precicion ==> precision
src/util/time.h:90: precicion ==> precision
^ Warning: codespell identified likely spelling errors. Any false positives? Add them to the list of ignored words in test/lint/spelling.ignore-words.txt
```
~~I left the 'nd' in miniscript_tests as-is, as it's valid miniscript,
and I'm wary of whitelisting it.~~
ACKs for top commit:
dunxen:
ACK f565b28
Tree-SHA512: 501a426c5f6f9761e2c8f980d5d955611428a827321888f53e0ae9526b0fecd43f9d1fa845fc70ae2489d77be6dc0b5b371dff55c5146f4b39ed874f4a1ea917
Diffstat (limited to 'src')
-rw-r--r-- | src/bench/bench.cpp | 2 | ||||
-rw-r--r-- | src/qt/test/addressbooktests.cpp | 4 | ||||
-rw-r--r-- | src/test/versionbits_tests.cpp | 2 | ||||
-rw-r--r-- | src/util/time.h | 4 |
4 files changed, 6 insertions, 6 deletions
diff --git a/src/bench/bench.cpp b/src/bench/bench.cpp index d26b52410c..26975bb59d 100644 --- a/src/bench/bench.cpp +++ b/src/bench/bench.cpp @@ -58,7 +58,7 @@ void benchmark::BenchRunner::RunAll(const Args& args) std::smatch baseMatch; if (args.sanity_check) { - std::cout << "Running with --sanity check option, benchmark results will be useless." << std::endl; + std::cout << "Running with --sanity-check option, benchmark results will be useless." << std::endl; } std::vector<ankerl::nanobench::Result> benchmarkResults; diff --git a/src/qt/test/addressbooktests.cpp b/src/qt/test/addressbooktests.cpp index ededde4da9..3b7a40438b 100644 --- a/src/qt/test/addressbooktests.cpp +++ b/src/qt/test/addressbooktests.cpp @@ -182,13 +182,13 @@ void TestAddAddressesToSendBook(interfaces::Node& node) search_line->setText("io"); QCOMPARE(table_view->model()->rowCount(), 2); - // Check wilcard "?". + // Check wildcard "?". search_line->setText("io?new"); QCOMPARE(table_view->model()->rowCount(), 0); search_line->setText("io???new"); QCOMPARE(table_view->model()->rowCount(), 2); - // Check wilcard "*". + // Check wildcard "*". search_line->setText("io*new"); QCOMPARE(table_view->model()->rowCount(), 2); search_line->setText("*"); diff --git a/src/test/versionbits_tests.cpp b/src/test/versionbits_tests.cpp index 9f7bada076..e6203af4b4 100644 --- a/src/test/versionbits_tests.cpp +++ b/src/test/versionbits_tests.cpp @@ -257,7 +257,7 @@ BOOST_AUTO_TEST_CASE(versionbits_test) /** Check that ComputeBlockVersion will set the appropriate bit correctly */ static void check_computeblockversion(VersionBitsCache& versionbitscache, const Consensus::Params& params, Consensus::DeploymentPos dep) { - // Clear the cache everytime + // Clear the cache every time versionbitscache.Clear(); int64_t bit = params.vDeployments[dep].bit; diff --git a/src/util/time.h b/src/util/time.h index 14df3fe53a..ad91a72860 100644 --- a/src/util/time.h +++ b/src/util/time.h @@ -86,8 +86,8 @@ void SetMockTime(std::chrono::seconds mock_time_in); std::chrono::seconds GetMockTime(); /** - * Return the current time point cast to the given precicion. Only use this - * when an exact precicion is needed, otherwise use T::clock::now() directly. + * Return the current time point cast to the given precision. Only use this + * when an exact precision is needed, otherwise use T::clock::now() directly. */ template <typename T> T Now() |