aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-08-16 17:59:17 +0800
committerGitHub <noreply@github.com>2018-08-16 17:59:17 +0800
commita9e7ae2954550409eac09f1e8f656561cf75a12a (patch)
treee1c22298ef86a5a86ed72fcfdea8e856a759252b
parentcc6fa6d61fb934617d088bb04766ef0dea614b4f (diff)
parent74c37935f0e0c028c007f306597c74a4834e53f7 (diff)
downloaddexon-solidity-a9e7ae2954550409eac09f1e8f656561cf75a12a.tar
dexon-solidity-a9e7ae2954550409eac09f1e8f656561cf75a12a.tar.gz
dexon-solidity-a9e7ae2954550409eac09f1e8f656561cf75a12a.tar.bz2
dexon-solidity-a9e7ae2954550409eac09f1e8f656561cf75a12a.tar.lz
dexon-solidity-a9e7ae2954550409eac09f1e8f656561cf75a12a.tar.xz
dexon-solidity-a9e7ae2954550409eac09f1e8f656561cf75a12a.tar.zst
dexon-solidity-a9e7ae2954550409eac09f1e8f656561cf75a12a.zip
Merge pull request #4831 from liangdzou/develop
fix a typo: declaratoion => declaration
-rw-r--r--libsolidity/ast/AST.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/ast/AST.cpp b/libsolidity/ast/AST.cpp
index a376e55d..635ab024 100644
--- a/libsolidity/ast/AST.cpp
+++ b/libsolidity/ast/AST.cpp
@@ -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);