mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-17 13:07:54 +02:00
Fix typos reported by codespell
This commit is contained in:
parent
59ecacfc84
commit
ada356208e
19 changed files with 30 additions and 25 deletions
|
|
@ -373,7 +373,7 @@ enum class ParseScriptContext {
|
|||
P2WSH,
|
||||
};
|
||||
|
||||
/** Parse a constant. If succesful, sp is updated to skip the constant and return true. */
|
||||
/** Parse a constant. If successful, sp is updated to skip the constant and return true. */
|
||||
bool Const(const std::string& str, Span<const char>& sp)
|
||||
{
|
||||
if ((size_t)sp.size() >= str.size() && std::equal(str.begin(), str.end(), sp.begin())) {
|
||||
|
|
@ -383,7 +383,7 @@ bool Const(const std::string& str, Span<const char>& sp)
|
|||
return false;
|
||||
}
|
||||
|
||||
/** Parse a function call. If succesful, sp is updated to be the function's argument(s). */
|
||||
/** Parse a function call. If successful, sp is updated to be the function's argument(s). */
|
||||
bool Func(const std::string& str, Span<const char>& sp)
|
||||
{
|
||||
if ((size_t)sp.size() >= str.size() + 2 && sp[str.size()] == '(' && sp[sp.size() - 1] == ')' && std::equal(str.begin(), str.end(), sp.begin())) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue