Fix typos reported by codespell

This commit is contained in:
practicalswift
2018-08-14 09:27:30 +02:00
parent 59ecacfc84
commit ada356208e
19 changed files with 30 additions and 25 deletions

View File

@@ -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())) {