aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/ast/AST.cpp
diff options
context:
space:
mode:
authorliangdzou <liang.d.zou@gmail.com>2018-08-16 13:42:46 +0800
committerliangdzou <liang.d.zou@gmail.com>2018-08-16 13:42:46 +0800
commit74c37935f0e0c028c007f306597c74a4834e53f7 (patch)
treee1c22298ef86a5a86ed72fcfdea8e856a759252b /libsolidity/ast/AST.cpp
parentcc6fa6d61fb934617d088bb04766ef0dea614b4f (diff)
downloaddexon-solidity-74c37935f0e0c028c007f306597c74a4834e53f7.tar.gz
dexon-solidity-74c37935f0e0c028c007f306597c74a4834e53f7.tar.zst
dexon-solidity-74c37935f0e0c028c007f306597c74a4834e53f7.zip
fix a typo: declaratoion => declaration
Diffstat (limited to 'libsolidity/ast/AST.cpp')
-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);