diff options
author | chriseth <chris@ethereum.org> | 2018-10-04 19:03:55 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-10-04 19:28:16 +0800 |
commit | d76bfcd935407e7249cfb8480a29da24615667cf (patch) | |
tree | 64e752a223dde295279fadf52934ac7cae6e80e0 /libsolidity | |
parent | 1305bf34f0f82983868028cf2e39f218ba742385 (diff) | |
download | dexon-solidity-d76bfcd935407e7249cfb8480a29da24615667cf.tar dexon-solidity-d76bfcd935407e7249cfb8480a29da24615667cf.tar.gz dexon-solidity-d76bfcd935407e7249cfb8480a29da24615667cf.tar.bz2 dexon-solidity-d76bfcd935407e7249cfb8480a29da24615667cf.tar.lz dexon-solidity-d76bfcd935407e7249cfb8480a29da24615667cf.tar.xz dexon-solidity-d76bfcd935407e7249cfb8480a29da24615667cf.tar.zst dexon-solidity-d76bfcd935407e7249cfb8480a29da24615667cf.zip |
Fix typos.
Diffstat (limited to 'libsolidity')
-rw-r--r-- | libsolidity/analysis/ViewPureChecker.cpp | 8 | ||||
-rw-r--r-- | libsolidity/codegen/CompilerUtils.h | 2 | ||||
-rw-r--r-- | libsolidity/parsing/Scanner.cpp | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/libsolidity/analysis/ViewPureChecker.cpp b/libsolidity/analysis/ViewPureChecker.cpp index 113a3177..b0cacc43 100644 --- a/libsolidity/analysis/ViewPureChecker.cpp +++ b/libsolidity/analysis/ViewPureChecker.cpp @@ -292,11 +292,11 @@ void ViewPureChecker::endVisit(FunctionCall const& _functionCall) if (_functionCall.annotation().kind != FunctionCallKind::FunctionCall) return; - StateMutability mut = dynamic_cast<FunctionType const&>(*_functionCall.expression().annotation().type).stateMutability(); + StateMutability mutability = dynamic_cast<FunctionType const&>(*_functionCall.expression().annotation().type).stateMutability(); // We only require "nonpayable" to call a payble function. - if (mut == StateMutability::Payable) - mut = StateMutability::NonPayable; - reportMutability(mut, _functionCall.location()); + if (mutability == StateMutability::Payable) + mutability = StateMutability::NonPayable; + reportMutability(mutability, _functionCall.location()); } bool ViewPureChecker::visit(MemberAccess const& _memberAccess) diff --git a/libsolidity/codegen/CompilerUtils.h b/libsolidity/codegen/CompilerUtils.h index ad3d7327..bd8170ad 100644 --- a/libsolidity/codegen/CompilerUtils.h +++ b/libsolidity/codegen/CompilerUtils.h @@ -260,7 +260,7 @@ public: /// Stack post: <shifted_value> void rightShiftNumberOnStack(unsigned _bits); - /// Appends code that computes tha Keccak-256 hash of the topmost stack element of 32 byte type. + /// Appends code that computes the Keccak-256 hash of the topmost stack element of 32 byte type. void computeHashStatic(); /// Bytes we need to the start of call data. diff --git a/libsolidity/parsing/Scanner.cpp b/libsolidity/parsing/Scanner.cpp index 0f6d6996..9a7f85cb 100644 --- a/libsolidity/parsing/Scanner.cpp +++ b/libsolidity/parsing/Scanner.cpp @@ -601,7 +601,7 @@ void Scanner::scanToken() { tie(token, m, n) = scanIdentifierOrKeyword(); - // Special case for hexademical literals + // Special case for hexadecimal literals if (token == Token::Hex) { // reset |