Merge pull request #4831 from liangdzou/develop

fix a typo: declaratoion => declaration
This commit is contained in:
chriseth 2018-08-16 11:59:17 +02:00 committed by GitHub
commit a9e7ae2954
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -397,7 +397,7 @@ SourceUnit const& Scopable::sourceUnit() const
{ {
ASTNode const* s = scope(); ASTNode const* s = scope();
solAssert(s, ""); 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()) while (dynamic_cast<Scopable const*>(s) && dynamic_cast<Scopable const*>(s)->scope())
s = dynamic_cast<Scopable const*>(s)->scope(); s = dynamic_cast<Scopable const*>(s)->scope();
return dynamic_cast<SourceUnit const&>(*s); return dynamic_cast<SourceUnit const&>(*s);