Skip to content

Commit d4d9daf

Browse files
author
MacroFake
committed
Merge bitcoin#25200: doc: Fix spelling errors identified by codespell in comments
f565b28 Fixup option name in bench message (Ben Woosley) bf209ac 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
2 parents 1f932de + f565b28 commit d4d9daf

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed

src/bench/bench.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ void benchmark::BenchRunner::RunAll(const Args& args)
5858
std::smatch baseMatch;
5959

6060
if (args.sanity_check) {
61-
std::cout << "Running with --sanity check option, benchmark results will be useless." << std::endl;
61+
std::cout << "Running with --sanity-check option, benchmark results will be useless." << std::endl;
6262
}
6363

6464
std::vector<ankerl::nanobench::Result> benchmarkResults;

src/qt/test/addressbooktests.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,13 +182,13 @@ void TestAddAddressesToSendBook(interfaces::Node& node)
182182
search_line->setText("io");
183183
QCOMPARE(table_view->model()->rowCount(), 2);
184184

185-
// Check wilcard "?".
185+
// Check wildcard "?".
186186
search_line->setText("io?new");
187187
QCOMPARE(table_view->model()->rowCount(), 0);
188188
search_line->setText("io???new");
189189
QCOMPARE(table_view->model()->rowCount(), 2);
190190

191-
// Check wilcard "*".
191+
// Check wildcard "*".
192192
search_line->setText("io*new");
193193
QCOMPARE(table_view->model()->rowCount(), 2);
194194
search_line->setText("*");

src/test/versionbits_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ BOOST_AUTO_TEST_CASE(versionbits_test)
257257
/** Check that ComputeBlockVersion will set the appropriate bit correctly */
258258
static void check_computeblockversion(VersionBitsCache& versionbitscache, const Consensus::Params& params, Consensus::DeploymentPos dep)
259259
{
260-
// Clear the cache everytime
260+
// Clear the cache every time
261261
versionbitscache.Clear();
262262

263263
int64_t bit = params.vDeployments[dep].bit;

src/util/time.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ void SetMockTime(std::chrono::seconds mock_time_in);
8686
std::chrono::seconds GetMockTime();
8787

8888
/**
89-
* Return the current time point cast to the given precicion. Only use this
90-
* when an exact precicion is needed, otherwise use T::clock::now() directly.
89+
* Return the current time point cast to the given precision. Only use this
90+
* when an exact precision is needed, otherwise use T::clock::now() directly.
9191
*/
9292
template <typename T>
9393
T Now()

test/lint/spelling.ignore-words.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ inout
1111
invokable
1212
keypair
1313
mor
14+
nd
1415
nin
1516
ser
1617
unparseable

0 commit comments

Comments
 (0)