Skip to content

Commit 4874269

Browse files
committed
Replace "can not" with "cannot" in docs, user messages, and tests
1 parent e670edd commit 4874269

16 files changed

+21
-21
lines changed

contrib/guix/guix-build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ fi
192192

193193
if ! getent services http https ftp > /dev/null 2>&1; then
194194
cat << EOF
195-
ERR: Your system's C library can not find service database entries for at least
195+
ERR: Your system's C library cannot find service database entries for at least
196196
one of the following services: http, https, ftp.
197197
198198
Hint: Most likely, /etc/services does not exist yet (common for docker images

doc/developer-notes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ other input.
331331
failure, it will throw an exception, which can be caught to recover from the
332332
error.
333333
- For example, a nullptr dereference or any other logic bug in RPC code
334-
means that the RPC code is faulty and can not be executed. However, the
334+
means that the RPC code is faulty and cannot be executed. However, the
335335
logic bug can be shown to the user and the program can continue to run.
336336
* `Assume` should be used to document assumptions when program execution can
337337
safely continue even if the assumption is violated. In debug builds it
@@ -1199,7 +1199,7 @@ A few guidelines for introducing and reviewing new RPC interfaces:
11991199

12001200
- Don't forget to fill in the argument names correctly in the RPC command table.
12011201
1202-
- *Rationale*: If not, the call can not be used with name-based arguments.
1202+
- *Rationale*: If not, the call cannot be used with name-based arguments.
12031203
12041204
- Add every non-string RPC argument `(method, idx, name)` to the table `vRPCConvertParams` in `rpc/client.cpp`.
12051205

src/net.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3097,7 +3097,7 @@ void CaptureMessage(const CAddress& addr, const std::string& msg_type, const Spa
30973097
// layer (processing) perspective.
30983098
auto now = GetTime<std::chrono::microseconds>();
30993099

3100-
// Windows folder names can not include a colon
3100+
// Windows folder names cannot include a colon
31013101
std::string clean_addr = addr.ToString();
31023102
std::replace(clean_addr.begin(), clean_addr.end(), ':', '_');
31033103

src/qt/bitcoin.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ int GuiMain(int argc, char* argv[])
509509
InitError(strprintf(Untranslated("Error parsing command line arguments: %s\n"), error));
510510
// Create a message box, because the gui has neither been created nor has subscribed to core signals
511511
QMessageBox::critical(nullptr, PACKAGE_NAME,
512-
// message can not be translated because translations have not been initialized
512+
// message cannot be translated because translations have not been initialized
513513
QString::fromStdString("Error parsing command line arguments: %1.").arg(QString::fromStdString(error)));
514514
return EXIT_FAILURE;
515515
}

src/rpc/misc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ static RPCHelpMan setmocktime()
426426
RPCTypeCheck(request.params, {UniValue::VNUM});
427427
const int64_t time{request.params[0].get_int64()};
428428
if (time < 0) {
429-
throw JSONRPCError(RPC_INVALID_PARAMETER, strprintf("Mocktime can not be negative: %s.", time));
429+
throw JSONRPCError(RPC_INVALID_PARAMETER, strprintf("Mocktime cannot be negative: %s.", time));
430430
}
431431
SetMockTime(time);
432432
auto node_context = util::AnyPtr<NodeContext>(request.context);

src/rpc/rawtransaction.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ static RPCHelpMan verifytxoutproof()
380380
RPCResult{
381381
RPCResult::Type::ARR, "", "",
382382
{
383-
{RPCResult::Type::STR_HEX, "txid", "The txid(s) which the proof commits to, or empty array if the proof can not be validated."},
383+
{RPCResult::Type::STR_HEX, "txid", "The txid(s) which the proof commits to, or empty array if the proof cannot be validated."},
384384
}
385385
},
386386
RPCExamples{""},

src/test/util_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1286,7 +1286,7 @@ BOOST_AUTO_TEST_CASE(util_ParseMoney)
12861286
BOOST_CHECK_EQUAL(ParseMoney("0.00000001 ").value(), COIN/100000000);
12871287
BOOST_CHECK_EQUAL(ParseMoney(" 0.00000001").value(), COIN/100000000);
12881288

1289-
// Parsing amount that can not be represented should fail
1289+
// Parsing amount that cannot be represented should fail
12901290
BOOST_CHECK(!ParseMoney("100000000.00"));
12911291
BOOST_CHECK(!ParseMoney("0.000000001"));
12921292

src/txdb.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ std::optional<bilingual_str> CheckLegacyTxindex(CBlockTreeDB& block_tree_db)
3636
{
3737
CBlockLocator ignored{};
3838
if (block_tree_db.Read(DB_TXINDEX_BLOCK, ignored)) {
39-
return _("The -txindex upgrade started by a previous version can not be completed. Restart with the previous version or run a full -reindex.");
39+
return _("The -txindex upgrade started by a previous version cannot be completed. Restart with the previous version or run a full -reindex.");
4040
}
4141
bool txindex_legacy_flag{false};
4242
block_tree_db.ReadFlag("txindex", txindex_legacy_flag);

src/validation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2071,7 +2071,7 @@ bool CChainState::ConnectBlock(const CBlock& block, BlockValidationState& state,
20712071
fEnforceBIP30 = fEnforceBIP30 && (!pindexBIP34height || !(pindexBIP34height->GetBlockHash() == m_params.GetConsensus().BIP34Hash));
20722072

20732073
// TODO: Remove BIP30 checking from block height 1,983,702 on, once we have a
2074-
// consensus change that ensures coinbases at those heights can not
2074+
// consensus change that ensures coinbases at those heights cannot
20752075
// duplicate earlier coinbases.
20762076
if (fEnforceBIP30 || pindex->nHeight >= BIP34_IMPLIES_BIP30_LIMIT) {
20772077
for (const auto& tx : block.vtx) {

src/wallet/rpc/encrypt.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ RPCHelpMan walletpassphrase()
6666
}
6767

6868
if (strWalletPass.empty()) {
69-
throw JSONRPCError(RPC_INVALID_PARAMETER, "passphrase can not be empty");
69+
throw JSONRPCError(RPC_INVALID_PARAMETER, "passphrase cannot be empty");
7070
}
7171

7272
if (!pwallet->Unlock(strWalletPass)) {
@@ -139,7 +139,7 @@ RPCHelpMan walletpassphrasechange()
139139
strNewWalletPass = request.params[1].get_str().c_str();
140140

141141
if (strOldWalletPass.empty() || strNewWalletPass.empty()) {
142-
throw JSONRPCError(RPC_INVALID_PARAMETER, "passphrase can not be empty");
142+
throw JSONRPCError(RPC_INVALID_PARAMETER, "passphrase cannot be empty");
143143
}
144144

145145
if (!pwallet->ChangeWalletPassphrase(strOldWalletPass, strNewWalletPass)) {
@@ -236,7 +236,7 @@ RPCHelpMan encryptwallet()
236236
strWalletPass = request.params[0].get_str().c_str();
237237

238238
if (strWalletPass.empty()) {
239-
throw JSONRPCError(RPC_INVALID_PARAMETER, "passphrase can not be empty");
239+
throw JSONRPCError(RPC_INVALID_PARAMETER, "passphrase cannot be empty");
240240
}
241241

242242
if (!pwallet->EncryptWallet(strWalletPass)) {

0 commit comments

Comments
 (0)