Skip to content

Commit 0f98226

Browse files
authored
Merge pull request #15184 from xiaoxianBoy/fix-typos
Fix several typos in code comments
2 parents dd4f189 + 9e49b2c commit 0f98226

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

libsolidity/formal/BMC.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ bool BMC::visit(WhileStatement const& _node)
376376
auto indices = copyVariableIndices();
377377
_node.condition().accept(*this);
378378
loopCondition = expr(_node.condition());
379-
// asseert that the loop is complete
379+
// assert that the loop is complete
380380
m_context.addAssertion(!loopCondition || broke || !loopConditionOnPreviousIterations);
381381
mergeVariables(
382382
broke || !loopConditionOnPreviousIterations,

libsolutil/CommonData.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ void iterateReplacingWindow(std::vector<T>& _vector, F const& _f)
575575
detail::iterateReplacingWindow(_vector, _f, std::make_index_sequence<N>{});
576576
}
577577

578-
/// @returns true iff @a _str passess the hex address checksum test.
578+
/// @returns true iff @a _str passes the hex address checksum test.
579579
/// @param _strict if false, hex strings with only uppercase or only lowercase letters
580580
/// are considered valid.
581581
bool passesAddressChecksum(std::string const& _str, bool _strict);

libyul/AsmParser.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ class Parser: public langutil::ParserBase
140140
/// Parses a functional expression that has to push exactly one stack element
141141
Expression parseExpression();
142142
/// Parses an elementary operation, i.e. a literal, identifier, instruction or
143-
/// builtin functian call (only the name).
143+
/// builtin function call (only the name).
144144
std::variant<Literal, Identifier> parseLiteralOrIdentifier();
145145
VariableDeclaration parseVariableDeclaration();
146146
FunctionDefinition parseFunctionDefinition();

0 commit comments

Comments
 (0)