fix a typo: declaratoion => declaration

This commit is contained in:
liangdzou 2018-08-16 13:42:46 +08:00
parent cc6fa6d61f
commit 74c37935f0

View File

@ -397,7 +397,7 @@ SourceUnit const& Scopable::sourceUnit() const
{
ASTNode const* s = scope();
solAssert(s, "");
// will not always be a declaratoion
// will not always be a declaration
while (dynamic_cast<Scopable const*>(s) && dynamic_cast<Scopable const*>(s)->scope())
s = dynamic_cast<Scopable const*>(s)->scope();
return dynamic_cast<SourceUnit const&>(*s);