854 | @@ -855,8 +855,8 @@ static RPCHelpMan submitpackage()
855 | },
856 | },
857 | RPCExamples{
858 | - HelpExampleCli("testmempoolaccept", "[rawtx1, rawtx2]") +
859 | - HelpExampleCli("submitpackage", "[rawtx1, rawtx2]")
860 | + HelpExampleRpc("submitpackage", R"(["rawtx1", "rawtx2"])") +
861 | + HelpExampleCli("submitpackage", R"(["rawtx1", "rawtx2"])")
I don't really understand why b2fb55cabc76d842c58b51ff9c64126e6639d1bb is better - I'd interpret this as an array of literal strings "rawtx1", "rawtx2" ?
The main point of b2fb55cabc76d842c58b51ff9c64126e6639d1bb is to remove the testmempoolaccept reference. I use the opportunity to align the string notation with the (I think) more recent usage of raw literal string notation, which is a bit clearer imo. Using quotation marks around the "variable" name seems consistent with every other instance I've found, e.g. testmempoolaccept, generateblock, combinerawtransaction and combinepsbt
So I think these changes make sense?
Marking as resolved for now, lmk if you still have concerns about this.
if we're lining up ala testmempoolaccept shouldn't we be adding single quotes around the whole array as well?
You're right, force pushed to add single quotes, thanks.