mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix typos.
This commit is contained in:
parent
1305bf34f0
commit
d76bfcd935
@ -242,7 +242,7 @@ activate themselves.
|
||||
mapping(address => uint) pendingReturns;
|
||||
|
||||
// Set to true at the end, disallows any change.
|
||||
// By defaul initialized to `false`.
|
||||
// By default initialized to `false`.
|
||||
bool ended;
|
||||
|
||||
// Events that will be emitted on changes.
|
||||
|
@ -499,9 +499,9 @@ terminate the string literal. Newline only terminates the string literal if it i
|
||||
Hexadecimal Literals
|
||||
--------------------
|
||||
|
||||
Hexademical Literals are prefixed with the keyword ``hex`` and are enclosed in double or single-quotes (``hex"001122FF"``). Their content must be a hexadecimal string and their value will be the binary representation of those values.
|
||||
Hexadecimal literals are prefixed with the keyword ``hex`` and are enclosed in double or single-quotes (``hex"001122FF"``). Their content must be a hexadecimal string and their value will be the binary representation of those values.
|
||||
|
||||
Hexademical Literals behave like String Literals and have the same convertibility restrictions.
|
||||
Hexadecimal literals behave like string literals and have the same convertibility restrictions.
|
||||
|
||||
.. index:: enum
|
||||
|
||||
|
@ -160,7 +160,7 @@ AssemblyItems CSECodeGenerator::generateCode(
|
||||
if (seqNr < _initialSequenceNumber)
|
||||
// Invalid sequenced operation.
|
||||
// @todo quick fix for now. Proper fix needs to choose representative with higher
|
||||
// sequence number during dependency analyis.
|
||||
// sequence number during dependency analysis.
|
||||
BOOST_THROW_EXCEPTION(StackTooDeepException());
|
||||
sequencedExpressions.insert(make_pair(seqNr, id));
|
||||
}
|
||||
|
@ -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)
|
||||
|
@ -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.
|
||||
|
@ -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
|
||||
|
@ -1,3 +1,4 @@
|
||||
iff
|
||||
nd
|
||||
assignend
|
||||
uint
|
||||
|
@ -234,7 +234,7 @@ contract VestedToken is StandardToken, LimitedTransferToken {
|
||||
}
|
||||
|
||||
/**
|
||||
* @dev Calculate the date when the holder can trasfer all its tokens
|
||||
* @dev Calculate the date when the holder can transfer all its tokens
|
||||
* @param holder address The address of the holder
|
||||
* @return An uint256 representing the date of the last transferable tokens.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user