Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f55f33b

Browse files
committed
Fix spelling errors
1 parent ffc608a commit f55f33b

File tree

9 files changed

+17
-16
lines changed

9 files changed

+17
-16
lines changed

libevmasm/Assembly.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -433,10 +433,10 @@ map<u256, u256> Assembly::optimiseInternal(
433433
// This only modifies PushTags, we have to run again to actually remove code.
434434
if (_settings.runDeduplicate)
435435
{
436-
BlockDeduplicator dedup{m_items};
437-
if (dedup.deduplicate())
436+
BlockDeduplicator deduplicator{m_items};
437+
if (deduplicator.deduplicate())
438438
{
439-
for (auto const& replacement: dedup.replacedTags())
439+
for (auto const& replacement: deduplicator.replacedTags())
440440
{
441441
assertThrow(
442442
replacement.first <= size_t(-1) && replacement.second <= size_t(-1),

libsolidity/ast/ASTAnnotations.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ struct ExpressionAnnotation: ASTAnnotation
181181
bool lValueRequested = false;
182182

183183
/// Types and - if given - names of arguments if the expr. is a function
184-
/// that is called, used for overload resoultion
184+
/// that is called, used for overload resolution
185185
std::optional<FuncCallArguments> arguments;
186186
};
187187

libsolidity/codegen/CompilerUtils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ class CompilerUtils
281281
/// Appends code that computes the Keccak-256 hash of the topmost stack element of 32 byte type.
282282
void computeHashStatic();
283283

284-
/// Apppends code that copies the code of the given contract to memory.
284+
/// Appends code that copies the code of the given contract to memory.
285285
/// Stack pre: Memory position
286286
/// Stack post: Updated memory position
287287
/// @param creation if true, copies creation code, if false copies runtime code.

libsolidity/codegen/ExpressionCompiler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1646,7 +1646,7 @@ void ExpressionCompiler::endVisit(Identifier const& _identifier)
16461646
// If the identifier is called right away, this code is executed in visit(FunctionCall...), because
16471647
// we want to avoid having a reference to the runtime function entry point in the
16481648
// constructor context, since this would force the compiler to include unreferenced
1649-
// internal functions in the runtime contex.
1649+
// internal functions in the runtime context.
16501650
utils().pushCombinedFunctionEntryLabel(m_context.resolveVirtualFunction(*functionDef));
16511651
else if (auto variable = dynamic_cast<VariableDeclaration const*>(declaration))
16521652
appendVariable(*variable, static_cast<Expression const&>(_identifier));

libsolidity/interface/StandardCompiler.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ bool isArtifactRequested(Json::Value const& _outputSelection, string const& _art
176176
}
177177

178178
///
179-
/// @a _outputSelection is a JSON object containining a two-level hashmap, where the first level is the filename,
179+
/// @a _outputSelection is a JSON object containing a two-level hashmap, where the first level is the filename,
180180
/// the second level is the contract name and the value is an array of artifact names to be requested for that contract.
181181
/// @a _file is the current file
182182
/// @a _contract is the current contract
@@ -227,7 +227,7 @@ bool isBinaryRequested(Json::Value const& _outputSelection)
227227
if (!_outputSelection.isObject())
228228
return false;
229229

230-
// This does not inculde "evm.methodIdentifiers" on purpose!
230+
// This does not include "evm.methodIdentifiers" on purpose!
231231
static vector<string> const outputsThatRequireBinaries{
232232
"*",
233233
"ir", "irOptimized",

scripts/codespell_whitelist.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ errorstring
1212
keyserver
1313
hist
1414
otion
15+
keypair

scripts/release_ppa.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
## You can pass a branch name as argument to this script (which, if no argument is given,
77
## will default to "develop").
88
##
9-
## If the gien branch is "release", the resulting package will be uplaoded to
9+
## If the given branch is "release", the resulting package will be uploaded to
1010
## ethereum/ethereum PPA, or ethereum/ethereum-dev PPA otherwise.
1111
##
1212
## The gnupg key for "[email protected]" has to be present in order to sign

test/compilationTests/corion/ico.sol

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ contract ico is safeMath {
193193

194194
function setICOEthPrice(uint256 value) external {
195195
/*
196-
Setting of the ICO ETC USD rates which can only be calle by a pre-defined address.
196+
Setting of the ICO ETC USD rates which can only be called by a pre-defined address.
197197
After this function is completed till the call of the next function (which is at least an exchangeRateDelay array) this rate counts.
198198
With this process avoiding the sudden rate changes.
199199
@@ -221,8 +221,8 @@ contract ico is safeMath {
221221
/*
222222
Closing the ICO.
223223
It is only possible when the ICO period passed and only by the owner.
224-
The 96% of the whole amount of the token is generated to the address of the fundation.
225-
Ethers which are situated in this contract will be sent to the address of the fundation.
224+
The 96% of the whole amount of the token is generated to the address of the foundation.
225+
Ethers which are situated in this contract will be sent to the address of the foundation.
226226
*/
227227
require( msg.sender == owner );
228228
require( block.number > icoDelay );

test/libevmasm/Optimiser.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -792,8 +792,8 @@ BOOST_AUTO_TEST_CASE(block_deduplicator)
792792
Instruction::JUMP,
793793
AssemblyItem(Tag, 3)
794794
};
795-
BlockDeduplicator dedup(input);
796-
dedup.deduplicate();
795+
BlockDeduplicator deduplicator(input);
796+
deduplicator.deduplicate();
797797

798798
set<u256> pushTags;
799799
for (AssemblyItem const& item: input)
@@ -824,8 +824,8 @@ BOOST_AUTO_TEST_CASE(block_deduplicator_loops)
824824
AssemblyItem(PushTag, 2),
825825
Instruction::JUMP,
826826
};
827-
BlockDeduplicator dedup(input);
828-
dedup.deduplicate();
827+
BlockDeduplicator deduplicator(input);
828+
deduplicator.deduplicate();
829829

830830
set<u256> pushTags;
831831
for (AssemblyItem const& item: input)

0 commit comments

Comments
 (0)